[PATCH 0/2] iio: magnetometer: cleanup unused IIO_CHAN_INFO_PROCESSED handling

Dixit Parmar posted 2 patches 3 weeks, 1 day ago
drivers/iio/magnetometer/als31300.c | 1 -
drivers/iio/magnetometer/tmag5273.c | 1 -
2 files changed, 2 deletions(-)
[PATCH 0/2] iio: magnetometer: cleanup unused IIO_CHAN_INFO_PROCESSED handling
Posted by Dixit Parmar 3 weeks, 1 day ago
This series cleans up dead code in the magnetometer drivers by
removing unused handling for IIO_CHAN_INFO_PROCESSED. None of these
drivers set this bit in info_mask_* fields, so the cases are never
reached.
These changes reduce code paths, improve readability, and make the
switch statements easier to maintain. No functional changes are
intended.

Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
---
Dixit Parmar (2):
      iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling
      iio: magnetometer: tmag5273: remove unused IIO_CHAN_INFO_PROCESSED handling

 drivers/iio/magnetometer/als31300.c | 1 -
 drivers/iio/magnetometer/tmag5273.c | 1 -
 2 files changed, 2 deletions(-)
---
base-commit: 76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c
change-id: 20250910-iio_chan_617_rc5-59be964d7451

Best regards,
-- 
Dixit Parmar <dixitparmar19@gmail.com>
Re: [PATCH 0/2] iio: magnetometer: cleanup unused IIO_CHAN_INFO_PROCESSED handling
Posted by Jonathan Cameron 3 weeks, 1 day ago
On Wed, 10 Sep 2025 19:36:48 +0530
Dixit Parmar <dixitparmar19@gmail.com> wrote:

> This series cleans up dead code in the magnetometer drivers by
> removing unused handling for IIO_CHAN_INFO_PROCESSED. None of these
> drivers set this bit in info_mask_* fields, so the cases are never
> reached.
> These changes reduce code paths, improve readability, and make the
> switch statements easier to maintain. No functional changes are
> intended.
> 
> Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
> ---
> Dixit Parmar (2):
>       iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling
>       iio: magnetometer: tmag5273: remove unused IIO_CHAN_INFO_PROCESSED handling
> 
>  drivers/iio/magnetometer/als31300.c | 1 -
>  drivers/iio/magnetometer/tmag5273.c | 1 -
>  2 files changed, 2 deletions(-)
> ---
> base-commit: 76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c
> change-id: 20250910-iio_chan_617_rc5-59be964d7451
> 
> Best regards,

Good find. Applied to the togreg  branch of iio.git and pushed out as testing.

Thanks,

Jonathan