Input: egalax_ts - remove unused definitions
Subsystems (2)
PATCH 1/1 Input: egalax_ts - remove unused definitions
From: Fabio Estevam <[email protected]>
REPORT_MODE_MOUSE and REPORT_MODE_VENDOR are never used in the driver, so let's just remove them.
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/input/touchscreen/egalax_ts.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/input/touchscreen/egalax_ts.c +0 -12
@@ -29,18 +29,6 @@#include <linux/input/mt.h> #include <linux/of_gpio.h> -/* -* Mouse Mode: some panel may configure the controller to mouse mode, -* which can only report one point at a given time. -* This driver will ignore events in this mode. -*/ -#define REPORT_MODE_MOUSE 0x1 -/* -* Vendor Mode: this mode is used to transfer some vendor specific -* messages. -* This driver will ignore events in this mode. -*/ -#define REPORT_MODE_VENDOR 0x3/* Multiple Touch Mode */ #define REPORT_MODE_MTTOUCH 0x4
Signature · 1 line
1.9.1
Dmitry Torokhov
maintainerHi Fabio,
Quoted 20 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
REPORT_MODE_MOUSEandREPORT_MODE_VENDORare never used in the driver, so let's just remove them.Signed-off-by Fabio Estevam <[email protected]>--- drivers/input/touchscreen/egalax_ts.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/input/touchscreen/egalax_ts.c +0
-2@@ -29,18 +29,6 @@#include <linux/input/mt.h> #include <linux/of_gpio.h> -/* -* Mouse Mode: some panel may configure the controller to mouse mode,
drivers/input/touchscreen/egalax_ts.c line 43
Quoted 10 lines
drivers/input/touchscreen/egalax_ts.c +0
-10-* which can only report one point at a given time. -* This driver will ignore events in this mode. -*/ -#define REPORT_MODE_MOUSE 0x1 -/* -* Vendor Mode: this mode is used to transfer some vendor specific -* messages. -* This driver will ignore events in this mode. -*/ -#define REPORT_MODE_VENDOR 0x3
Keeping this does not add to runtime size and is not excessive, I do not see harm in not keeping it.
Quoted 6 lines
drivers/input/touchscreen/egalax_ts.c +0
-0/* Multiple Touch Mode */ #define REPORT_MODE_MTTOUCH 0x4Signature · 1 line
1.9.1
Thanks.
Signature · 1 line
Dmitry