aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorYuanjun Gong <[email protected]>2025-05-13 12:37:32 +0000
committerSebastian Reichel <[email protected]>2025-06-22 17:28:53 +0000
commita9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8 (patch)
treec27a621cf69f695e702a0a1a45119319b8e99f6f /rust/helpers/cpu.c
parentpower: reset: POWER_RESET_TORADEX_EC should depend on ARCH_MXC (diff)
downloadkernel-a9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8.tar.gz
kernel-a9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8.zip
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: Yuanjun Gong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'rust/helpers/cpu.c')
0 files changed, 0 insertions, 0 deletions