diff mbox series

Staging: iio: meter: fixed typo

Message ID 20190213101952.29816-1-leonardp@tr-host.de (mailing list archive)
State New, archived
Headers show
Series Staging: iio: meter: fixed typo | expand

Commit Message

Leonard Pollak Feb. 13, 2019, 10:19 a.m. UTC
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>
---
 drivers/staging/iio/meter/ade7854.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Hennerich, Michael Feb. 13, 2019, 10:25 a.m. UTC | #1
> -----Original Message-----
> From: leonard.pollak@tr-host.de [mailto:leonard.pollak@tr-host.de] On Behalf Of Leonard Pollak
> Sent: Mittwoch, 13. Februar 2019 11:20
> To: jic23@kernel.org; lars@metafoo.de; pmeerw@pmeerw.net; Hennerich, Michael <Michael.Hennerich@analog.com>
> Cc: linux-iio@vger.kernel.org; Leonard Pollak <leonardp@tr-host.de>
> 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.
> 
> Signed-off-by: Leonard Pollak <leonardp@tr-host.de>

Acked-by: Michael Hennerich <michael.hennerich@analog.com>

> ---
>  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 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,
> --
> 2.17.1
Jonathan Cameron Feb. 20, 2019, 11:39 a.m. UTC | #2
On Wed, 13 Feb 2019 10:25:18 +0000
"Hennerich, Michael" <Michael.Hennerich@analog.com> wrote:

> > -----Original Message-----
> > From: leonard.pollak@tr-host.de [mailto:leonard.pollak@tr-host.de] On Behalf Of Leonard Pollak
> > Sent: Mittwoch, 13. Februar 2019 11:20
> > To: jic23@kernel.org; lars@metafoo.de; pmeerw@pmeerw.net; Hennerich, Michael <Michael.Hennerich@analog.com>
> > Cc: linux-iio@vger.kernel.org; Leonard Pollak <leonardp@tr-host.de>
> > 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.
> > 
> > Signed-off-by: Leonard Pollak <leonardp@tr-host.de>  
> 
> Acked-by: Michael Hennerich <michael.hennerich@analog.com>
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

> 
> > ---
> >  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 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,
> > --
> > 2.17.1  
>
diff mbox series

Patch

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,