Staging: iio: meter: fixed typo [Linux 3.16.72]

This Linux kernel change "Staging: iio: meter: fixed typo" is included in the Linux 3.16.72 release. This change is authored by Leonard Pollak <leonardp [at] tr-host.de> on Wed Feb 13 11:19:52 2019 +0100. The commit for this change in Linux stable tree is b8da660 (patch) which is from upstream commit 0a8a29b. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 0a8a29b.

Staging: iio: meter: fixed typo

commit 0a8a29be499cbb67df79370aaf5109085509feb8 upstream.

This patch fixes an obvious typo, which will cause erroneously returning the Peak
Voltage instead of the Peak Current.

Signed-off-by: Leonard Pollak <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c
index bcfdb65..c318e26 100644
--- a/drivers/staging/iio/meter/ade7854.c
+++ b/drivers/staging/iio/meter/ade7854.c
@@ -269,7 +269,7 @@ static IIO_DEV_ATTR_VPEAK(S_IWUSR | S_IRUGO,
 static IIO_DEV_ATTR_IPEAK(S_IWUSR | S_IRUGO,
        ade7854_read_32bit,
        ade7854_write_32bit,
-       ADE7854_VPEAK);
+       ADE7854_IPEAK);
 static IIO_DEV_ATTR_APHCAL(S_IWUSR | S_IRUGO,
        ade7854_read_16bit,
        ade7854_write_16bit,

Leave a Reply

Your email address will not be published. Required fields are marked *