* [PATCH] iio: chemical: bme680: remove unused BME680_NUM_CHANNELS macro
@ 2026-04-07 9:03 Nikhil Gautam
2026-04-07 14:28 ` David Lechner
0 siblings, 1 reply; 2+ messages in thread
From: Nikhil Gautam @ 2026-04-07 9:03 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, dlechner, nuno.sa, andy, Nikhil Gautam
The BME680_NUM_CHANNELS macro is not used anywhere in the driver.
Remove it to avoid keeping dead code and to improve readability.
No functional change intended.
Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com>
---
drivers/iio/chemical/bme680.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iio/chemical/bme680.h b/drivers/iio/chemical/bme680.h
index 7d86ed8b02e6..e10d3aaaca23 100644
--- a/drivers/iio/chemical/bme680.h
+++ b/drivers/iio/chemical/bme680.h
@@ -68,7 +68,6 @@
/* Datasheet Section 1.1, Table 1 */
#define BME680_STARTUP_TIME_US 2000
-#define BME680_NUM_CHANNELS 4
#define BME680_NUM_BULK_READ_REGS 15
/* Calibration Parameters */
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: chemical: bme680: remove unused BME680_NUM_CHANNELS macro
2026-04-07 9:03 [PATCH] iio: chemical: bme680: remove unused BME680_NUM_CHANNELS macro Nikhil Gautam
@ 2026-04-07 14:28 ` David Lechner
0 siblings, 0 replies; 2+ messages in thread
From: David Lechner @ 2026-04-07 14:28 UTC (permalink / raw)
To: Nikhil Gautam, linux-iio; +Cc: jic23, nuno.sa, andy
On 4/7/26 4:03 AM, Nikhil Gautam wrote:
> The BME680_NUM_CHANNELS macro is not used anywhere in the driver.
> Remove it to avoid keeping dead code and to improve readability.
>
> No functional change intended.
>
> Signed-off-by: Nikhil Gautam <nikhilgtr@gmail.com>
> ---
> drivers/iio/chemical/bme680.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/iio/chemical/bme680.h b/drivers/iio/chemical/bme680.h
> index 7d86ed8b02e6..e10d3aaaca23 100644
> --- a/drivers/iio/chemical/bme680.h
> +++ b/drivers/iio/chemical/bme680.h
> @@ -68,7 +68,6 @@
> /* Datasheet Section 1.1, Table 1 */
> #define BME680_STARTUP_TIME_US 2000
>
> -#define BME680_NUM_CHANNELS 4
> #define BME680_NUM_BULK_READ_REGS 15
>
> /* Calibration Parameters */
It looks like it was intended to be used in drivers/iio/chemical/bme680_core.c:
struct bme680_data {
struct regmap *regmap;
struct bme680_calib bme680;
struct mutex lock; /* Protect multiple serial R/W ops to device. */
u8 oversampling_temp;
u8 oversampling_press;
u8 oversampling_humid;
u8 preheat_curr_mA;
u16 heater_dur;
u16 heater_temp;
struct {
s32 chan[4];
aligned_s64 ts;
} scan;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-07 14:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 9:03 [PATCH] iio: chemical: bme680: remove unused BME680_NUM_CHANNELS macro Nikhil Gautam
2026-04-07 14:28 ` David Lechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox