Skip to contentSkip to conversation

Staging: iio: meter: fixed typo

PATCH Applied Leonard Pollak 3 participants 3 messages Feb 13, 2019 – Feb 20, 2019

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

PATCH 1/1 Staging: iio: meter: fixed typo

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

---
 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 Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Leonard Pollak
Sent: Mittwoch, 13. Februar 2019 11:20
To: [email protected]; [email protected]; [email protected]; Hennerich, Michael <[email protected]>
Cc: [email protected]; Leonard Pollak <[email protected]>
Subject: [PATCH] Staging: iio: meter: fixed typo

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

Quoted 19 lines
---
 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7854.c +1 -2
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,
--

2.17.1

maintainer Applied
#2 lore raw
Quoted 7 lines · Michael
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Leonard Pollak
Sent: Mittwoch, 13. Februar 2019 11:20
To: [email protected]; [email protected]; [email protected]; Hennerich, Michael <[email protected]>
Cc: [email protected]; Leonard Pollak <[email protected]>
Subject: [PATCH] Staging: iio: meter: fixed typo

Quoted 6 lines
Quoted 4 lines

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

Applied to the fixes-togreg branch of iio.git, marked for stable.

Will probably not go upstream until after the coming merge window. It's been broken a 'while' so I'm not going to rush it in.

Thanks,

Jonathan

Quoted 21 lines
Quoted 20 lines
---
 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7854.c +1 -2
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,
--

2.17.1