1 From f3df53e4d70b5736368a8fe8aa1bb70c1cb1f577 Mon Sep 17 00:00:00 2001
2 From: Michael Hennerich <michael.hennerich@analog.com>
3 Date: Mon, 22 Feb 2016 10:20:24 +0100
4 Subject: drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors
6 From: Michael Hennerich <michael.hennerich@analog.com>
8 commit f3df53e4d70b5736368a8fe8aa1bb70c1cb1f577 upstream.
10 Fix RDAC read back errors caused by a typo. Value must shift by 2.
12 Fixes: a4bd394956f2 ("drivers/misc/ad525x_dpot.c: new features")
13 Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 drivers/misc/ad525x_dpot.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/drivers/misc/ad525x_dpot.c
21 +++ b/drivers/misc/ad525x_dpot.c
22 @@ -216,7 +216,7 @@ static s32 dpot_read_i2c(struct dpot_dat
24 value = swab16(value);
26 - if (dpot->uid == DPOT_UID(AD5271_ID))
27 + if (dpot->uid == DPOT_UID(AD5274_ID))