diff options
author | Leonard Pollak <leonardp@tr-host.de> | 2019-02-13 11:19:52 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-03-09 16:55:05 +0000 |
commit | 0a8a29be499cbb67df79370aaf5109085509feb8 (patch) | |
tree | ea21cdebd89f186538e73ce682639542872414f9 /drivers/staging/iio | |
parent | 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b (diff) | |
download | linux-0a8a29be499cbb67df79370aaf5109085509feb8.tar.gz linux-0a8a29be499cbb67df79370aaf5109085509feb8.tar.bz2 linux-0a8a29be499cbb67df79370aaf5109085509feb8.zip |
Staging: iio: meter: fixed typo
This patch fixes an obvious typo, which will cause erroneously returning the Peak
Voltage instead of the Peak Current.
Signed-off-by: Leonard Pollak <leonardp@tr-host.de>
Cc: <Stable@vger.kernel.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/meter/ade7854.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c index 029c3bf42d4d..07774c000c5a 100644 --- a/drivers/staging/iio/meter/ade7854.c +++ b/drivers/staging/iio/meter/ade7854.c @@ -269,7 +269,7 @@ static IIO_DEV_ATTR_VPEAK(0644, static IIO_DEV_ATTR_IPEAK(0644, ade7854_read_32bit, ade7854_write_32bit, - ADE7854_VPEAK); + ADE7854_IPEAK); static IIO_DEV_ATTR_APHCAL(0644, ade7854_read_16bit, ade7854_write_16bit, |