diff options
author | Xiaohui Tao <xtao@nvidia.com> | 2013-07-30 16:50:49 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:38:16 -0700 |
commit | f57c8b80f61f19ee201c95479e74c41da25377f9 (patch) | |
tree | 517ee380fac2d3b2932c5e87f18a76125a4f4654 /drivers/input/touchscreen | |
parent | cc39d78343409b65c2c6433c9f762fa86ce7f1d3 (diff) |
input: touchscreen: raydium add detection of AVC sensor
Change-Id: I32db26ebfa18d219f2df05b75dcd5e45250c9b23
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/255809
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/rm31080a_ts.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/rm31080a_ts.c b/drivers/input/touchscreen/rm31080a_ts.c index 03136e4ff19c..62b31dea4844 100644 --- a/drivers/input/touchscreen/rm31080a_ts.c +++ b/drivers/input/touchscreen/rm31080a_ts.c @@ -907,11 +907,9 @@ static u32 rm_tch_get_platform_id(u8 *p) static u32 rm_tch_get_gpio_sensor_select(u8 *p) { u32 u32Ret = 0; - /* wait to be implemented... - struct rm_spi_ts_platform_data *pdata; - pdata = g_input_dev->dev.parent->platform_data; - u32Ret = gpio_set_value(pdata->gpio_sensor_select0) | (1 << gpio_set_value(pdata->gpio_sensor_select1)); - */ + struct rm_spi_ts_platform_data *pdata; + pdata = g_input_dev->dev.parent->platform_data; + u32Ret = pdata->gpio_sensor_select0 | pdata->gpio_sensor_select1 << 1; u32Ret = copy_to_user(p, &u32Ret, sizeof(u32Ret)); if (u32Ret != 0) return FAIL; |