Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {