[PATCH v2 0/2] iio: light: veml6030: Generalize hw_init for veml6030 and veml6035
Gabriel Braga Lagrotaria
gabrielblo em ime.usp.br
Ter Abr 28 21:00:30 -03 2026
Hello,
This patchset refactors the veml6030 driver to improve support for device
variations and future-proof the codebase. The primary focus is to
deduplicate the hardware initialization logic and move away from wildcard
naming conventions.
The first patch removes the 'x' wildcard from the main chip structure,
renaming it to 'veml6030_chip_desc'. The second patch introduces a
configuration structure to handle device-specific values, allowing
veml6030 and veml6035 to share a single initialization path.
Changes in v2:
- Renamed 'struct veml603x_chip' to 'struct veml6030_chip_desc' to
avoid wildcard naming as requested.
- Refactored initialization logic to use a configuration descriptor,
removing the redundant veml6035_hw_init().
Gabriel Braga Lagrotaria (2):
iio: light: veml6030: Remove 'x' wildcard usages in file
iio: light: veml6030: Generalize hw_init for veml6030 and veml6035
drivers/iio/light/veml6030.c | 102 +++++++++++++++--------------------
1 file changed, 42 insertions(+), 60 deletions(-)
--
2.54.0
Mais detalhes sobre a lista de discussão kernel