Code cleanups and stability fixes
/drivers/input/touchscreen/atmel.c
blob:169e66b677061072d07cd422bef753cd9e3948cf -> blob:61afd458a7cfb1fec32614bbbdd14205b0d94240
--- drivers/input/touchscreen/atmel.c
+++ drivers/input/touchscreen/atmel.c
@@ -1151,9 +1151,9 @@ static int atmel_ts_probe(struct i2c_cli
BEGIN
*/
if(ts->id->family_id == 0x4F)
- pdata->config_T9[14] = 3;
- else
- pdata->config_T9[14] = 5;
+ pdata->config_T9[T9_CFG_NUMTOUCH] = 3;
+ else if (ts->id->family_id == 0x80)
+ pdata->config_T9[T9_CFG_NUMTOUCH] = 5;
printk(KERN_INFO "%d point multitouch enabled\n", pdata->config_T9[14]);
/*