diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/synaptics_i2c_rmi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/synaptics_i2c_rmi.c b/drivers/input/touchscreen/synaptics_i2c_rmi.c index 4ad4cc9cfec3..56cf371eac93 100644 --- a/drivers/input/touchscreen/synaptics_i2c_rmi.c +++ b/drivers/input/touchscreen/synaptics_i2c_rmi.c @@ -43,6 +43,7 @@ struct synaptics_ts_data { int snap_down[2]; int snap_up[2]; uint32_t flags; + int8_t sensitivity_adjust; int (*power)(int on); struct early_suspend early_suspend; }; @@ -65,6 +66,11 @@ static int synaptics_init_panel(struct synaptics_ts_data *ts) if (ret < 0) printk(KERN_ERR "i2c_smbus_write_byte_data failed for No Clip Z\n"); + ret = i2c_smbus_write_byte_data(ts->client, 0x44, + ts->sensitivity_adjust); + if (ret < 0) + pr_err("synaptics_ts: failed to set Sensitivity Adjust\n"); + err_page_select_failed: ret = i2c_smbus_write_byte_data(ts->client, 0xff, 0x04); /* page select = 0x04 */ if (ret < 0) @@ -316,6 +322,7 @@ static int synaptics_ts_probe( while (pdata->version > panel_version) pdata++; ts->flags = pdata->flags; + ts->sensitivity_adjust = pdata->sensitivity_adjust; inactive_area_left = pdata->inactive_left; inactive_area_right = pdata->inactive_right; inactive_area_top = pdata->inactive_top; |