public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Subject: [PATCH 0/2] iio: light: cm3323: fix and cleanup
@ 2026-04-02 15:17 Aldo Conte
  2026-04-02 15:17 ` [PATCH 1/2] iio: light: cm3323: fix reg_conf not being initialized correctly Aldo Conte
  2026-04-02 15:17 ` [PATCH 2/2] iio: light: cm3323: use dev_err_probe() in probe path Aldo Conte
  0 siblings, 2 replies; 5+ messages in thread
From: Aldo Conte @ 2026-04-02 15:17 UTC (permalink / raw)
  To: jic23
  Cc: ktsai, dlechner, nuno.sa, andy, daniel.baluta, linux-iio,
	linux-kernel, skhan, me, linux-kernel-mentees

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.


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 | 24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

-- 
2.53.0


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 15:17 [PATCH 0/2] Subject: [PATCH 0/2] iio: light: cm3323: fix and cleanup Aldo Conte
2026-04-02 15:17 ` [PATCH 1/2] iio: light: cm3323: fix reg_conf not being initialized correctly Aldo Conte
2026-04-02 16:14   ` Andy Shevchenko
2026-04-02 15:17 ` [PATCH 2/2] iio: light: cm3323: use dev_err_probe() in probe path Aldo Conte
2026-04-02 16:12   ` Andy Shevchenko

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