projects
/
wrapfs-2.6.38.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e36970
)
drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors
author
Michael Hennerich
<michael.hennerich@analog.com>
Mon, 22 Feb 2016 09:20:24 +0000
(10:20 +0100)
committer
Jiri Slaby
<jslaby@suse.cz>
Tue, 3 May 2016 05:45:08 +0000
(07:45 +0200)
commit
f3df53e4d70b5736368a8fe8aa1bb70c1cb1f577
upstream.
Fix RDAC read back errors caused by a typo. Value must shift by 2.
Fixes: a4bd394956f2 ("drivers/misc/ad525x_dpot.c: new features")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/misc/ad525x_dpot.c
patch
|
blob
|
history
diff --git
a/drivers/misc/ad525x_dpot.c
b/drivers/misc/ad525x_dpot.c
index 0daadcf1ed7ae3254cbfcd6f2b67b75b7cddb53f..65fb74402c37bad9f6c017eed94a8de7b6a85beb 100644
(file)
--- a/
drivers/misc/ad525x_dpot.c
+++ b/
drivers/misc/ad525x_dpot.c
@@
-216,7
+216,7
@@
static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg)
*/
value = swab16(value);
- if (dpot->uid == DPOT_UID(AD527
1
_ID))
+ if (dpot->uid == DPOT_UID(AD527
4
_ID))
value = value >> 2;
return value;
default: