Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2387490imu; Fri, 14 Dec 2018 10:09:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJ764R0PKC9oLP6JQiP2B+IDj923BVpGpff6SdCKTJ0cZMz8j0gfhNBusr57ok4DeHnkm3 X-Received: by 2002:a17:902:a70b:: with SMTP id w11mr3784832plq.84.1544810968702; Fri, 14 Dec 2018 10:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544810968; cv=none; d=google.com; s=arc-20160816; b=0rnb4EdGGRj0PSU1xFaGBPIq07bI8UtX2EAxu4fXm/GKGTesI3AeSRoZOLkvauF6z/ il1S6ku8AyqKuGA8IMNb801mQQIQpUj3FUNxhaz6CWl68UrBCSt/WWrB58uRlPH5whUe DsTTqynvvmCSD419MLDb0c+r6phHBhLSBiq2J0dj77RR+OhJ+N7eNX7HoR/yrMCHyRR5 esYScm2Sgkr+bDI6TWp8lPk4vL+j2lwkAVAgtfonXH3UW2TR7iEQlHDBMj4xi8f+9rMp N3rmr9U8VisoPhBhb6UiUmHhNavie40WAprDf565fSaJ/3wCgEqVqRBoW2KeEwZn2XJb +jTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cy4O51U6sVKnzFN/6ke4qYh7v4hI4QhoyMWNCm0wQE8=; b=BhdT7/szBLyHSGDymlNcvpr/G4rLDZ94ggP2P0bWWqANYOcQw3DChXbpPeZc4Z3Too PKP5pdlrDttk2FEpqsGyST5zwOKckC78hgjKIYOyVm+iOm6OepwNV1Buuey61YAiw+IP TwVa8+Dy1DsIlpemBN1f17gVpv0fs9P027izrD9Qb7Od3UiFwvXurCemv+jRQRAHDbJk 6Qnge0QPNag2ZPYADuwc4FAv0fD4izAEBJ8zoANlcUraNt6XkOW1q8FI3QJIzt+wqd7p wIeXscUkWA4BiagVwBrAc9ilOtRVV6um6NA8LXaSiW3uPuEtx6uEJZNuUrg41wUXhWj9 ZbTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Ce+liFcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j191si4538356pgc.15.2018.12.14.10.09.01; Fri, 14 Dec 2018 10:09:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Ce+liFcy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730414AbeLNSGv (ORCPT + 99 others); Fri, 14 Dec 2018 13:06:51 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34843 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729619AbeLNSGv (ORCPT ); Fri, 14 Dec 2018 13:06:51 -0500 Received: by mail-pg1-f196.google.com with SMTP id s198so3045548pgs.2 for ; Fri, 14 Dec 2018 10:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cy4O51U6sVKnzFN/6ke4qYh7v4hI4QhoyMWNCm0wQE8=; b=Ce+liFcy4uFeF0BWhPZ3BY+DUPR2jfXXz+X54VAidhl/1FjP8KzSPRrZrwaooTDFTw T9q8do3gOhXpAqCqms0pVviqvegPiUfggWGsaB29abh0f1OnAi+12r3nJ8khy7h9nOP1 zBkDVF9Q1qACOHJrswLmPCFyrs58XLXOlJZkM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cy4O51U6sVKnzFN/6ke4qYh7v4hI4QhoyMWNCm0wQE8=; b=llIF+6WCytH2PrsvycCKUDlS8L1CwTHjlXH4R0QfIehwLYqah+V5YijoKsqcTMlhBN HL/M1RRWmEHorxSZ3W9ry3mtQIrWfZky/+Im37kl3J+F8y/FRNmFAmXdLSY7QtEYn8A9 qflx4pF6ND28C1LEwR5D7J1XtV+RzrTKn8vIxHumHktgGCh5q+VlNmOGkWhvn2d0DHK5 kjoImwQYdeACd+GEjlM5UyKE7G4zLV+G+swZLxhgeetHMNypf7jtiypnXgDvwiY7pNuA TDc077N4cOQLRET42g9BFMH7FqlqLmxCr0Mrxcg+2diD4OfLXdsNI6f6JY2vL9BlJdLb nF+Q== X-Gm-Message-State: AA+aEWatfppSufQT7QddbLmGQjEph0eb934hCHFbAh6u4Gfq6wAirPNe xfcgMp3ZWMu7taXBjxtsfdkgFjbldgMtfvXm4VGzqg== X-Received: by 2002:a63:8043:: with SMTP id j64mr3622647pgd.405.1544810810547; Fri, 14 Dec 2018 10:06:50 -0800 (PST) MIME-Version: 1.0 References: <20181213144323.24820-2-andreas.brauchli@sensirion.com> In-Reply-To: <20181213144323.24820-2-andreas.brauchli@sensirion.com> From: Matt Ranostay Date: Fri, 14 Dec 2018 10:06:39 -0800 Message-ID: Subject: Re: [PATCH v3 1/3] iio: Add modifiers for ethanol and H2 gases To: Andreas Brauchli Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Andreas Brauchli Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 6:44 AM Andreas Brauchli wrote: > > Add ethanol and H2 gas modifiers: > * IIO_MOD_ETHANOL Was going to ask why this wasn't a chemical formula like the rest of the modifiers, but C2H6O would be a bit wordy/unclear :). > * IIO_MOD_H2 > Acked-by: Matt Ranostay > Signed-off-by: Andreas Brauchli > --- > Documentation/ABI/testing/sysfs-bus-iio | 4 ++++ > include/uapi/linux/iio/types.h | 2 ++ > tools/iio/iio_event_monitor.c | 4 ++++ > 3 files changed, 10 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > index 8127a08e366d..6d64521bf565 100644 > --- a/Documentation/ABI/testing/sysfs-bus-iio > +++ b/Documentation/ABI/testing/sysfs-bus-iio > @@ -1554,6 +1554,10 @@ What: /sys/bus/iio/devices/iio:deviceX/in_concentration_raw > What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_raw > What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_raw > What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_co2_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_concentration_ethanol_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_ethanol_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_concentration_h2_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_h2_raw > What: /sys/bus/iio/devices/iio:deviceX/in_concentration_voc_raw > What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw > KernelVersion: 4.3 > diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h > index 92baabc103ac..04a6649fa442 100644 > --- a/include/uapi/linux/iio/types.h > +++ b/include/uapi/linux/iio/types.h > @@ -87,6 +87,8 @@ enum iio_modifier { > IIO_MOD_VOC, > IIO_MOD_LIGHT_UV, > IIO_MOD_LIGHT_DUV, > + IIO_MOD_ETHANOL, > + IIO_MOD_H2, > }; > > enum iio_event_type { > diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c > index ac2de6b7e89f..f29c885f4b28 100644 > --- a/tools/iio/iio_event_monitor.c > +++ b/tools/iio/iio_event_monitor.c > @@ -114,6 +114,8 @@ static const char * const iio_modifier_names[] = { > [IIO_MOD_I] = "i", > [IIO_MOD_Q] = "q", > [IIO_MOD_CO2] = "co2", > + [IIO_MOD_ETHANOL] = "ethanol", > + [IIO_MOD_H2] = "h2", > [IIO_MOD_VOC] = "voc", > }; > > @@ -199,6 +201,8 @@ static bool event_is_known(struct iio_event_data *event) > case IIO_MOD_I: > case IIO_MOD_Q: > case IIO_MOD_CO2: > + case IIO_MOD_ETHANOL: > + case IIO_MOD_H2: > case IIO_MOD_VOC: > break; > default: > -- > 2.17.1 >