diff options
| author | Aldo Conte <aldocontelk@gmail.com> | 2026-04-07 17:17:02 +0200 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-07-27 22:13:08 +0100 |
| commit | 810634c1f8ce0b7c5b748a5e8f3ce724bc0a5f2e (patch) | |
| tree | 524abede7275c2e13d61ef272a75bcea3b2d362a /tools/perf/scripts/python | |
| parent | d231462ae5b1b509b24517ff0e9890478dec4f22 (diff) | |
iio: light: cm3323: use dev_err_probe() in probe path
Replace dev_err() calls with dev_err_probe() in cm3323_init() and
cm3323_probe(). cm3323_init() is called by cm3323_probe(), so using
dev_err_probe() ensures that deferred probing is handled
correctly and simplifies error paths.
Remove the redundant error message in cm3323_probe().
Tested on a Raspberry Pi 3B using i2c-stub. The driver probes
successfully and successfully read integration_time after this change.
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Suggested-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Aldo Conte <aldocontelk@gmail.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
