[PATCH v2 00/13] iio: remove unused struct fields across drivers

Antoniu Miclaus posted 13 patches 5 days ago
drivers/iio/adc/ad4080.c             | 1 -
drivers/iio/adc/ad7768-1.c           | 1 -
drivers/iio/adc/ad7793.c             | 1 -
drivers/iio/adc/ad9467.c             | 1 -
drivers/iio/adc/max1363.c            | 2 --
drivers/iio/adc/nau7802.c            | 1 -
drivers/iio/adc/ti-ads1015.c         | 1 -
drivers/iio/dac/adi-axi-dac.c        | 1 -
drivers/iio/dac/ti-dac5571.c         | 1 -
drivers/iio/humidity/hdc2010.c       | 1 -
drivers/iio/imu/bmi323/bmi323_core.c | 1 -
drivers/iio/light/apds9306.c         | 2 --
drivers/iio/light/gp2ap020a00f.c     | 1 -
13 files changed, 15 deletions(-)
[PATCH v2 00/13] iio: remove unused struct fields across drivers
Posted by Antoniu Miclaus 5 days ago
This series removes unused struct fields found across various IIO
drivers. These fields were either left over from previous refactoring,
or were added during development but never actually used.

Removing them reduces memory footprint slightly and improves code
clarity by eliminating dead struct members that could confuse future
readers.

Each patch is independent and can be merged separately as they touch
different drivers with no dependencies between them.

Changes since v1:
- Reformatted as proper series with cover letter and numbering

Antoniu Miclaus (13):
  iio: adc: ad4080: remove unused dec_rate field
  iio: adc: ad7768-1: remove unused mclk_div field
  iio: adc: ad7793: remove unused int_vref_mv field
  iio: adc: ad9467: remove unused output_mode field
  iio: adc: max1363: remove unused requestedmask field
  iio: adc: nau7802: remove unused min_conversions field
  iio: adc: ti-ads1015: remove unused enabled field
  iio: dac: adi-axi-dac: remove unused int_tone field
  iio: dac: ti-dac5571: remove unused id field
  iio: humidity: hdc2010: remove unused interrupt_config
  iio: imu: bmi323: remove unused drdy_trigger_enabled
  iio: light: apds9306: remove unused nlux_per_count
  iio: light: gp2ap020a00f: remove unused debug_reg_addr

 drivers/iio/adc/ad4080.c             | 1 -
 drivers/iio/adc/ad7768-1.c           | 1 -
 drivers/iio/adc/ad7793.c             | 1 -
 drivers/iio/adc/ad9467.c             | 1 -
 drivers/iio/adc/max1363.c            | 2 --
 drivers/iio/adc/nau7802.c            | 1 -
 drivers/iio/adc/ti-ads1015.c         | 1 -
 drivers/iio/dac/adi-axi-dac.c        | 1 -
 drivers/iio/dac/ti-dac5571.c         | 1 -
 drivers/iio/humidity/hdc2010.c       | 1 -
 drivers/iio/imu/bmi323/bmi323_core.c | 1 -
 drivers/iio/light/apds9306.c         | 2 --
 drivers/iio/light/gp2ap020a00f.c     | 1 -
 13 files changed, 15 deletions(-)

-- 
2.43.0
Re: [PATCH v2 00/13] iio: remove unused struct fields across drivers
Posted by Andy Shevchenko 4 days, 2 hours ago
On Mon, Feb 02, 2026 at 01:25:50PM +0200, Antoniu Miclaus wrote:
> This series removes unused struct fields found across various IIO
> drivers. These fields were either left over from previous refactoring,
> or were added during development but never actually used.
> 
> Removing them reduces memory footprint slightly and improves code
> clarity by eliminating dead struct members that could confuse future
> readers.
> 
> Each patch is independent and can be merged separately as they touch
> different drivers with no dependencies between them.

Assuming it applies cleanly and compiles,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
and I see in some cases it gains space.

-- 
With Best Regards,
Andy Shevchenko
Re: [PATCH v2 00/13] iio: remove unused struct fields across drivers
Posted by Jonathan Cameron 1 day, 15 hours ago
On Tue, 3 Feb 2026 11:44:45 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Mon, Feb 02, 2026 at 01:25:50PM +0200, Antoniu Miclaus wrote:
> > This series removes unused struct fields found across various IIO
> > drivers. These fields were either left over from previous refactoring,
> > or were added during development but never actually used.
> > 
> > Removing them reduces memory footprint slightly and improves code
> > clarity by eliminating dead struct members that could confuse future
> > readers.
> > 
> > Each patch is independent and can be merged separately as they touch
> > different drivers with no dependencies between them.  
> 
> Assuming it applies cleanly and compiles,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> and I see in some cases it gains space.
> 

Applied.  Thanks!

J