diff options
| author | André Draszik <andre.draszik@linaro.org> | 2026-03-02 13:32:04 +0000 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-03-03 23:58:07 +0100 |
| commit | 699f0f71ac98cf79fecdcab0a604b25f11c580b6 (patch) | |
| tree | 3bac573a803a26117a5b8f87cec9c5554af1ca9f /tools/perf/scripts/python | |
| parent | e370b67c2ceb3e3c4577da0a882b1ede87ef485e (diff) | |
power: supply: max17042: use dev_err_probe() where appropriate
dev_err_probe() exists to simplify code, harmonise error messages, and
set the deferred probe reason if relevant - there's no reason not to
use it here.
While at it, return the actual error from devm_regmap_init_i2c() rather
than overwriting with -EINVAL, when relevant.
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260302-max77759-fg-v3-5-3c5f01dbda23@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
