evdev: remove useless field from device structure
We'll want to enhance later the driver regarding the tool being used, but for now just remove unused bits. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
@@ -42,7 +42,6 @@ struct evdev_input_device {
|
|||||||
struct wl_event_source *source;
|
struct wl_event_source *source;
|
||||||
struct wlsc_output *output;
|
struct wlsc_output *output;
|
||||||
char *devnode;
|
char *devnode;
|
||||||
int tool;
|
|
||||||
int fd;
|
int fd;
|
||||||
struct {
|
struct {
|
||||||
int min_x, max_x, min_y, max_y;
|
int min_x, max_x, min_y, max_y;
|
||||||
@@ -77,7 +76,6 @@ evdev_process_key(struct evdev_input_device *device,
|
|||||||
case BTN_TOOL_FINGER:
|
case BTN_TOOL_FINGER:
|
||||||
case BTN_TOOL_MOUSE:
|
case BTN_TOOL_MOUSE:
|
||||||
case BTN_TOOL_LENS:
|
case BTN_TOOL_LENS:
|
||||||
device->tool = e->value ? e->code : 0;
|
|
||||||
if (device->is_touchpad)
|
if (device->is_touchpad)
|
||||||
{
|
{
|
||||||
device->abs.reset_x = 1;
|
device->abs.reset_x = 1;
|
||||||
@@ -354,7 +352,6 @@ evdev_input_device_create(struct evdev_input *master,
|
|||||||
device->output =
|
device->output =
|
||||||
container_of(ec->output_list.next, struct wlsc_output, link);
|
container_of(ec->output_list.next, struct wlsc_output, link);
|
||||||
|
|
||||||
device->tool = 1;
|
|
||||||
device->master = master;
|
device->master = master;
|
||||||
device->is_touchpad = 0;
|
device->is_touchpad = 0;
|
||||||
device->devnode = strdup(path);
|
device->devnode = strdup(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user