[PATCH v2 0/2] iio: light: cm3323: fix and cleanup

From: Aldo Conte

Date: Sat Apr 04 2026 - 16:59:32 EST


This series fixes a bug and does a cleanup of the CM3323
color light sensor driver.

Patch 1 fixes data->reg_conf being incorrectly initialized with the
return value of the i2c_smbus_write_word_data() instead of the actual
register value. Tested with i2c-stub on a Raspberri Pi 3B.

Patch 2 converts dev_err() to dev_err_probe() in the probe path.

Changes in v2:
- Patch 1: fix typos in commit message
- Patch 2: add struct device *dev to shorten dev_err_probe() calls
to one-liners (suggested by Andy Shevchenko)

Aldo Conte (2):
iio: light: cm3323: fix reg_conf not being initialized correctly
iio: light: cm3323: use dev_err_probe() in probe path

drivers/iio/light/cm3323.c | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)

--
2.53.0