summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudhakar Manapati <smanap@codeaurora.org>2015-08-13 22:08:56 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-30 22:16:46 -0700
commit11489ea70f0a56e799a0364bea230ee7a548b5a9 (patch)
treebc8692739ecca6de01e22dedbdf2d395945a820e
parentd81508ebf82625cf4b93ad12df173b27b9bfd421 (diff)
input: sensors: change sensors classdev device's parent to input devices
Sensor HAL takes long time to scan /dev/input to get information from input subsystem. Change sensors sysfs hierarchy to avoid the scanning to reduce sensor HAL initialization time. Change-Id: Ifcd560dacdba2600f2ae5d40a5c3e639ea291274 Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
-rw-r--r--drivers/input/touchscreen/ft5x06_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ft5x06_ts.c b/drivers/input/touchscreen/ft5x06_ts.c
index f82c90588342..de1d2aacb60c 100644
--- a/drivers/input/touchscreen/ft5x06_ts.c
+++ b/drivers/input/touchscreen/ft5x06_ts.c
@@ -2303,7 +2303,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
ft5x06_psensor_enable_set;
psensor_pdata->data = data;
- err = sensors_classdev_register(&client->dev,
+ err = sensors_classdev_register(&psensor_input_dev->dev,
&psensor_pdata->ps_cdev);
if (err)
goto unregister_psensor_input_device;