diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-12-11 09:56:21 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-12-12 22:26:23 +0300 |
commit | 74c82dae6c474933f2be401976e1530b5f623221 (patch) | |
tree | 766452e7d86072f529a9b0442c2f933c78f1f777 | |
parent | 7343d11906788214220b124c379f5b0e1cec834f (diff) | |
download | linux-74c82dae6c474933f2be401976e1530b5f623221.tar.xz |
Input: drv260x - fix initializing overdrive voltage
We were accidentally initializing haptics->rated_voltage twice, and did not
initialize overdrive voltage.
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/misc/drv260x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index 2adfd86c869a..9789d4fb6e51 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -521,7 +521,7 @@ static int drv260x_probe(struct i2c_client *client, if (!haptics) return -ENOMEM; - haptics->rated_voltage = DRV260X_DEF_OD_CLAMP_VOLT; + haptics->overdrive_voltage = DRV260X_DEF_OD_CLAMP_VOLT; haptics->rated_voltage = DRV260X_DEF_RATED_VOLT; if (pdata) { |