The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: ad7124: drop nr field
@ 2025-09-17 20:39 David Lechner
  2025-09-17 20:39 ` [PATCH 1/2] iio: adc: ad7124: inline ad7124_enable_channel() David Lechner
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Lechner @ 2025-09-17 20:39 UTC (permalink / raw)
  To: Michael Hennerich, Jonathan Cameron, Nuno Sá,
	Andy Shevchenko
  Cc: linux-iio, linux-kernel, David Lechner

The motivation behind this series was to remove the `nr` field in struct
ad7124_channel since it is duplicating the same value as struct
iio_chan_spec.address (and duplicated again by .scan_index).

When it came to actually doing that though, I found that it was easier
to first clean things up by removing the ad7124_enable_channel()
function - which is a nice cleanup by itself. So ended up with 2 patches
that end with the same result without ever mentioning the duplication.

---
David Lechner (2):
      iio: adc: ad7124: inline ad7124_enable_channel()
      iio: adc: ad7124: remove unused `nr` field

 drivers/iio/adc/ad7124.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)
---
base-commit: 561285d048053fec8a3d6d1e3ddc60df11c393a0
change-id: 20250917-iio-adc-ad7124-drop-nr-field-518102218a61

Best regards,
-- 
David Lechner <dlechner@baylibre.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-20 11:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-17 20:39 [PATCH 0/2] iio: adc: ad7124: drop nr field David Lechner
2025-09-17 20:39 ` [PATCH 1/2] iio: adc: ad7124: inline ad7124_enable_channel() David Lechner
2025-09-17 20:39 ` [PATCH 2/2] iio: adc: ad7124: remove unused `nr` field David Lechner
2025-09-18 10:25 ` [PATCH 0/2] iio: adc: ad7124: drop nr field Nuno Sá
2025-09-20 11:04   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox