public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikhil Gautam <nikhilgtr@gmail.com>
To: linux-iio@vger.kernel.org
Cc: jic23@kernel.org, dlechner@baylibre.com,
	Nikhil Gautam <nikhilgtr@gmail.com>
Subject: [PATCH v2 0/1] iio: chemical: bme680: use BME680_NUM_CHANNELS
Date: Mon, 20 Apr 2026 13:54:35 +0530	[thread overview]
Message-ID: <20260420082436.7223-1-nikhilgtr@gmail.com> (raw)

Hi,

This patch updates the BME680 driver to use the existing
BME680_NUM_CHANNELS macro instead of a hardcoded value in the
scan buffer.

In the previous version, the macro was proposed for removal as it
appeared unused. However, it was pointed out during review that
it is intended to represent the number of channels in the scan
buffer.

This version addresses that feedback by using the macro instead
of removing it, improving readability and maintainability.

Changes in v2:

Use BME680_NUM_CHANNELS instead of hardcoded value
Keep the macro instead of removing it
Address review feedback from Jonathan Cameron

Suggested-by: Jonathan Cameron <jic23@kernel.org>

Thanks,
Nikhil Gautam

Nikhil Gautam (1):
  iio: chemical: bme680: use BME680_NUM_CHANNELS for scan buffer

 drivers/iio/chemical/bme680_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.34.1


             reply	other threads:[~2026-04-20  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-20  8:24 Nikhil Gautam [this message]
2026-04-20  8:24 ` [PATCH v2 1/1] iio: chemical: bme680: use BME680_NUM_CHANNELS for scan buffer Nikhil Gautam

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=20260420082436.7223-1-nikhilgtr@gmail.com \
    --to=nikhilgtr@gmail.com \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    /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