public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] iio: light: vcnl4000: drop enum ID table and use device-managed register
@ 2026-04-01 11:22 Erikas Bitovtas
  2026-04-01 11:22 ` [PATCH 1/3] iio: light: vcnl4000: validate device by prod ID instead of table ID Erikas Bitovtas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Erikas Bitovtas @ 2026-04-01 11:22 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: linux-iio, linux-kernel, Erikas Bitovtas

This patch series drops the enum ID table for device enumeration and
instead adds pointers to chip ID structs directly. Necessary
information about the device is then taken from i2c_get_match_data()
call. This removes the association between enum ID table and struct
table and allows for easier addition and removal of new devices.

Along with that, an iio_device_register() call is replaced with its
device-managed counterpart, to ensure that device is unregistered
automatically.

No functional changes are intended.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
---
Erikas Bitovtas (3):
      iio: light: vcnl4000: validate device by prod ID instead of table ID
      iio: light: vcnl4000: drop enum id table in favor of chip structs
      iio: light: vcnl4000: register an IIO device with a device-managed function

 drivers/iio/light/vcnl4000.c | 208 +++++++++++++++++++++----------------------
 1 file changed, 102 insertions(+), 106 deletions(-)
---
base-commit: 36ece9697e89016181e5ae87510e40fb31d86f2b
change-id: 20260401-vcnl4000-drop-enum-0238061fcff8

Best regards,
-- 
Erikas Bitovtas <xerikasxx@gmail.com>


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

end of thread, other threads:[~2026-04-02  8:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 11:22 [PATCH 0/3] iio: light: vcnl4000: drop enum ID table and use device-managed register Erikas Bitovtas
2026-04-01 11:22 ` [PATCH 1/3] iio: light: vcnl4000: validate device by prod ID instead of table ID Erikas Bitovtas
2026-04-01 11:22 ` [PATCH 2/3] iio: light: vcnl4000: drop enum id table in favor of chip structs Erikas Bitovtas
2026-04-02  8:21   ` Andy Shevchenko
2026-04-01 11:22 ` [PATCH 3/3] iio: light: vcnl4000: register an IIO device with a device-managed function Erikas Bitovtas
2026-04-02  8:20   ` Andy Shevchenko

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