Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v2 0/6] iio: light: vcnl4000: drop enum ID table and use device-managed register
@ 2026-04-05 16:08 Erikas Bitovtas
  2026-04-05 16:08 ` [PATCH v2 1/6] iio: light: vcnl4000: validate device by prod ID instead of table ID Erikas Bitovtas
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Erikas Bitovtas @ 2026-04-05 16:08 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>
---
Changes in v2:
- Moved device tree table entries into one line.
- Moved power state function in probe into a device-managed action.
- Replaced call to pm_runtime_set_active() and pm_runtime_enable() with
  its device-managed counterpart.
- Removed vcnl4000_remove function(), as all the clean up is done by
  device-managed functions.
- Link to v1: https://lore.kernel.org/r/20260401-vcnl4000-drop-enum-v1-0-ffd201f0c848@gmail.com

---
Erikas Bitovtas (6):
      iio: light: vcnl4000: validate device by prod ID instead of table ID
      iio: light: vcnl4000: move device tree entries into one line
      iio: light: vcnl4000: drop enum id table in favor of chip structs
      iio: light: vcnl4000: move power state function into device-managed action
      iio: light: vcnl4000: make pm_runtime_enable() device-managed
      iio: light: vcnl4000: register an IIO device with a device-managed function

 drivers/iio/light/vcnl4000.c | 274 +++++++++++++++++++------------------------
 1 file changed, 120 insertions(+), 154 deletions(-)
---
base-commit: 2febe6e6ee6e34c7754eff3c4d81aa7b0dcb7979
change-id: 20260401-vcnl4000-drop-enum-0238061fcff8

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


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

end of thread, other threads:[~2026-04-09  9:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 16:08 [PATCH v2 0/6] iio: light: vcnl4000: drop enum ID table and use device-managed register Erikas Bitovtas
2026-04-05 16:08 ` [PATCH v2 1/6] iio: light: vcnl4000: validate device by prod ID instead of table ID Erikas Bitovtas
2026-04-09  9:31   ` Andy Shevchenko
2026-04-05 16:08 ` [PATCH v2 2/6] iio: light: vcnl4000: move device tree entries into one line Erikas Bitovtas
2026-04-09  9:29   ` Andy Shevchenko
2026-04-05 16:08 ` [PATCH v2 3/6] iio: light: vcnl4000: drop enum id table in favor of chip structs Erikas Bitovtas
2026-04-05 16:08 ` [PATCH v2 4/6] iio: light: vcnl4000: move power state function into device-managed action Erikas Bitovtas
2026-04-09  9:34   ` Andy Shevchenko
2026-04-05 16:08 ` [PATCH v2 5/6] iio: light: vcnl4000: make pm_runtime_enable() device-managed Erikas Bitovtas
2026-04-09  9:38   ` Andy Shevchenko
2026-04-05 16:08 ` [PATCH v2 6/6] iio: light: vcnl4000: register an IIO device with a device-managed function Erikas Bitovtas

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