projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7343d11
)
Input: drv260x - fix initializing overdrive voltage
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 11 Dec 2016 06:56:21 +0000
(22:56 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 12 Dec 2016 19:26:23 +0000
(11:26 -0800)
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>
drivers/input/misc/drv260x.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/drv260x.c
b/drivers/input/misc/drv260x.c
index 2adfd86c869a5364312a2d8df904d2bd7df68b52..9789d4fb6e513553f7617cc33b8dbed0d8bb2d72 100644
(file)
--- 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) {