Commit a9aece5d authored by Yuanjun Gong's avatar Yuanjun Gong Committed by Sebastian Reichel
Browse files

power: return the correct error code



In POWER_SUPPLY_PROP_MODEL_NAME branch of max1720x_battery_get_property(),
program would return -ENODEV out of FIELD_GET error, but it's better also
considering the error code returned by regmap_read() in case it fails.

Signed-off-by: default avatarYuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20250513123732.3041577-1-ruc_gongyuanjun@163.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 22e4d29f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment