Commit 74c82dae authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: drv260x - fix initializing overdrive voltage

We were accidentally initializing haptics->rated_voltage twice, and did not
initialize overdrive voltage.
Acked-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7343d119
...@@ -521,7 +521,7 @@ static int drv260x_probe(struct i2c_client *client, ...@@ -521,7 +521,7 @@ static int drv260x_probe(struct i2c_client *client,
if (!haptics) if (!haptics)
return -ENOMEM; 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; haptics->rated_voltage = DRV260X_DEF_RATED_VOLT;
if (pdata) { if (pdata) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment