Skip to contentSkip to conversation

Staging: iio: meter: fixed iio_attr_ipeak pointing to vpeak register

PATCH In review Leonard Pollak 2 participants 2 messages Feb 12, 2019 – Feb 20, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: iio: meter: fixed iio_attr_ipeak pointing to vpeak register

---
 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7854.c +1 -1
index 029c3bf42d4d..07774c000c5a 100644
@@ -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,
Signature · 1 line
2.17.1
maintainer
#1 lore raw

On Tue, 12 Feb 2019 23:11:57 +0100
Leonard Pollak <[email protected]> wrote:

Hi Leonard,

If you send two versions of a patch for some reason and want one to be ignored, please make sure to send a quick reply saying that as save people looking at the wrong one!

Thanks,

Jonathan

Quoted 17 lines
---
 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7854.c +1 -1
index 029c3bf42d4d..07774c000c5a 100644
@@ -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,