]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.19/staging-iio-meter-fixed-typo.patch
Linux 4.14.114
[thirdparty/kernel/stable-queue.git] / queue-4.19 / staging-iio-meter-fixed-typo.patch
1 From 0a8a29be499cbb67df79370aaf5109085509feb8 Mon Sep 17 00:00:00 2001
2 From: Leonard Pollak <leonardp@tr-host.de>
3 Date: Wed, 13 Feb 2019 11:19:52 +0100
4 Subject: Staging: iio: meter: fixed typo
5
6 From: Leonard Pollak <leonardp@tr-host.de>
7
8 commit 0a8a29be499cbb67df79370aaf5109085509feb8 upstream.
9
10 This patch fixes an obvious typo, which will cause erroneously returning the Peak
11 Voltage instead of the Peak Current.
12
13 Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
14 Cc: <Stable@vger.kernel.org>
15 Acked-by: Michael Hennerich <michael.hennerich@analog.com>
16 Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 drivers/staging/iio/meter/ade7854.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/staging/iio/meter/ade7854.c
24 +++ b/drivers/staging/iio/meter/ade7854.c
25 @@ -269,7 +269,7 @@ static IIO_DEV_ATTR_VPEAK(0644,
26 static IIO_DEV_ATTR_IPEAK(0644,
27 ade7854_read_32bit,
28 ade7854_write_32bit,
29 - ADE7854_VPEAK);
30 + ADE7854_IPEAK);
31 static IIO_DEV_ATTR_APHCAL(0644,
32 ade7854_read_16bit,
33 ade7854_write_16bit,