diff mbox

[4/7] input: atmel_mxt_ts: allow writing of SPT_USERDATA_T38 in atmel_mxt_ts driver

Message ID 1360246668-2291-5-git-send-email-pmeerw@pmeerw.net (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Meerwald-Stadler Feb. 7, 2013, 2:17 p.m. UTC
From: Peter Meerwald <p.meerwald@bct-electronic.com>

beware: this may break boards using mxt_platform_data.config (which
is dangerous by design); boards in the kernel (mach-nuri.c, mach-goni.c)
don't use .config

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
---
 drivers/input/touchscreen/atmel_mxt_ts.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 17cc15a..7fdd439 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -309,6 +309,7 @@  static bool mxt_object_writable(unsigned int type)
 	case MXT_SPT_GPIOPWM_T19:
 	case MXT_SPT_SELFTEST_T25:
 	case MXT_SPT_CTECONFIG_T28:
+	case MXT_SPT_USERDATA_T38:
 	case MXT_SPT_DIGITIZER_T43:
 	case MXT_SPT_CTECONFIG_T46:
 		return true;