linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ricardo Ribalda <ribalda@chromium.org>
To: Jiri Kosina <jikos@kernel.org>,
	Benjamin Tissoires <bentiss@kernel.org>,
	 Jonathan Cameron <jic23@kernel.org>,
	 Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	 Lars-Peter Clausen <lars@metafoo.de>
Cc: Harvey Yang <chenghaoyang@google.com>,
	linux-input@vger.kernel.org,  linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 Ricardo Ribalda <ribalda@chromium.org>
Subject: [PATCH v2 4/5] iio: hid-sensors-prox: Make proximity channel indexed
Date: Mon, 28 Oct 2024 10:12:24 +0000	[thread overview]
Message-ID: <20241028-hpd-v2-4-18f6e79154d7@chromium.org> (raw)
In-Reply-To: <20241028-hpd-v2-0-18f6e79154d7@chromium.org>

We are going to introduce more proximity channels. Make proximity a
indexed channel now, in a simple patch, so the change can be easily
bisected if there are any issues.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
 drivers/iio/light/hid-sensor-prox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c
index d38564fe22df..0f12a8a83790 100644
--- a/drivers/iio/light/hid-sensor-prox.c
+++ b/drivers/iio/light/hid-sensor-prox.c
@@ -40,6 +40,7 @@ static const struct iio_chan_spec prox_channels[] = {
 		BIT(IIO_CHAN_INFO_SAMP_FREQ) |
 		BIT(IIO_CHAN_INFO_HYSTERESIS),
 		.scan_index = CHANNEL_SCAN_INDEX_PRESENCE,
+		.indexed = true,
 	}
 };
 

-- 
2.47.0.163.g1226f6d8fa-goog


  parent reply	other threads:[~2024-10-28 10:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28 10:12 [PATCH v2 0/5] iio: hid-sensors-prox: Add support for more channels Ricardo Ribalda
2024-10-28 10:12 ` [PATCH v2 1/5] iio: hid-sensors: Add proximity and attention IDs Ricardo Ribalda
2024-10-28 10:12 ` [PATCH v2 2/5] iio: hid-sensors-prox: Factor-in hid_sensor_push_data Ricardo Ribalda
2024-10-28 10:12 ` [PATCH v2 3/5] iio: Add channel type for attention Ricardo Ribalda
2024-10-28 20:34   ` Jonathan Cameron
2024-10-29 12:20     ` Ricardo Ribalda
2024-10-29 14:38       ` Jonathan Cameron
2024-10-29 22:26         ` David Lechner
2024-10-30 16:50           ` Jonathan Cameron
2024-10-28 10:12 ` Ricardo Ribalda [this message]
2024-10-28 10:12 ` [PATCH v2 5/5] iio: hid-sensor-prox: Add support for more channels Ricardo Ribalda
2024-10-28 20:29   ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241028-hpd-v2-4-18f6e79154d7@chromium.org \
    --to=ribalda@chromium.org \
    --cc=bentiss@kernel.org \
    --cc=chenghaoyang@google.com \
    --cc=jic23@kernel.org \
    --cc=jikos@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).