Skip to contentSkip to conversation

input: misc: drv260x remove defines not used

PATCH Applied Dan Murphy 2 participants 2 messages Aug 22, 2014 – Aug 26, 2014

Subsystems (2)
lore
Share & tools
lore

Dan Murphy

author
#0 lore raw

PATCH 1/1 input: misc: drv260x remove defines not used

Removing some #defines that are not and should
never be used pertaining to I2C.

Removing:
define DRV260X_ALLOWED_R_BYTES 25
define DRV260X_ALLOWED_W_BYTES 2
define DRV260X_MAX_RW_RETRIES 5
define DRV260X_I2C_RETRY_DELAY 10

---
 drivers/input/misc/drv260x.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/input/misc/drv260x.c +0 -5
index e90e3b8..a7a19e6 100644
@@ -66,11 +66,6 @@
 #define DRV260X_LRA_RES_PERIOD	0x22
 #define DRV260X_MAX_REG			0x23
 
-#define DRV260X_ALLOWED_R_BYTES	25
-#define DRV260X_ALLOWED_W_BYTES	2
-#define DRV260X_MAX_RW_RETRIES	5
-#define DRV260X_I2C_RETRY_DELAY 10
-
 #define DRV260X_GO_BIT				0x01
 
 /* Library Selection */
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 10 lines · Dan Murphy

Removing some #defines that are not and should
never be used pertaining to I2C.

Removing:
define DRV260X_ALLOWED_R_BYTES 25
define DRV260X_ALLOWED_W_BYTES 2
define DRV260X_MAX_RW_RETRIES 5
define DRV260X_I2C_RETRY_DELAY 10

Applied, thank you.

Quoted 23 lines
---
 drivers/input/misc/drv260x.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/input/misc/drv260x.c +0 -5
index e90e3b8..a7a19e6 100644
@@ -66,11 +66,6 @@
 #define DRV260X_LRA_RES_PERIOD	0x22
 #define DRV260X_MAX_REG			0x23
 
-#define DRV260X_ALLOWED_R_BYTES	25
-#define DRV260X_ALLOWED_W_BYTES	2
-#define DRV260X_MAX_RW_RETRIES	5
-#define DRV260X_I2C_RETRY_DELAY 10
-
 #define DRV260X_GO_BIT				0x01
 
 /* Library Selection */
Signature · 1 line
1.7.9.5
Signature · 1 line
Dmitry