iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
diff mbox series

Message ID 20200609030116.23013-1-matt.ranostay@konsulko.com
State New
Headers show
Series
  • iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
Related show

Commit Message

Matt Ranostay June 9, 2020, 3:01 a.m. UTC
Add missing strings to iio_modifier_names[] for proper modification
of channels.

Fixes: b170f7d48443d (iio: Add modifiers for ethanol and H2 gases)
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
---
 drivers/iio/industrialio-core.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jonathan Cameron June 14, 2020, 1:35 p.m. UTC | #1
On Tue,  9 Jun 2020 06:01:16 +0300
Matt Ranostay <matt.ranostay@konsulko.com> wrote:

> Add missing strings to iio_modifier_names[] for proper modification
> of channels.
> 
> Fixes: b170f7d48443d (iio: Add modifiers for ethanol and H2 gases)
> Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>

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

Thanks

Jonathan

> ---
>  drivers/iio/industrialio-core.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index 1527f01a44f1..352533342702 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -130,6 +130,8 @@ static const char * const iio_modifier_names[] = {
>  	[IIO_MOD_PM2P5] = "pm2p5",
>  	[IIO_MOD_PM4] = "pm4",
>  	[IIO_MOD_PM10] = "pm10",
> +	[IIO_MOD_ETHANOL] = "ethanol",
> +	[IIO_MOD_H2] = "h2",
>  };
>  
>  /* relies on pairs of these shared then separate */

Patch
diff mbox series

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 1527f01a44f1..352533342702 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -130,6 +130,8 @@  static const char * const iio_modifier_names[] = {
 	[IIO_MOD_PM2P5] = "pm2p5",
 	[IIO_MOD_PM4] = "pm4",
 	[IIO_MOD_PM10] = "pm10",
+	[IIO_MOD_ETHANOL] = "ethanol",
+	[IIO_MOD_H2] = "h2",
 };
 
 /* relies on pairs of these shared then separate */