Skip to contentSkip to conversation

Input: egalax_ts - remove unused definitions

PATCH In review Fabio Estevam 2 participants 2 messages Mar 4, 2016 – Mar 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/input/touchscreen/egalax_ts.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/input/touchscreen/egalax_ts.c +0 -12
index 1afc08b..a260476 100644
@@ -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
maintainer
#1 lore raw

Hi Fabio,

Quoted 20 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

REPORT_MODE_MOUSE and REPORT_MODE_VENDOR are never used in the driver, so let's just remove them.

---
 drivers/input/touchscreen/egalax_ts.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/input/touchscreen/egalax_ts.c +0 -2
index 1afc08b..a260476 100644
@@ -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		0x4
 
Signature · 1 line
1.9.1

Thanks.

Signature · 1 line
Dmitry