linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
@ 2020-06-09  3:01 Matt Ranostay
  2020-06-14 13:35 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Ranostay @ 2020-06-09  3:01 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, Matt Ranostay

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(+)

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 */
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
  2020-06-09  3:01 [PATCH] iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers Matt Ranostay
@ 2020-06-14 13:35 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2020-06-14 13:35 UTC (permalink / raw)
  To: Matt Ranostay; +Cc: linux-iio

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 */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-14 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09  3:01 [PATCH] iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers Matt Ranostay
2020-06-14 13:35 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).