diff options
| author | Yuanjun Gong <[email protected]> | 2025-05-13 12:37:32 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2025-06-22 17:28:53 +0000 |
| commit | a9aece5d7e8fa8bc74f1827d2cf1b189ffe7e8c8 (patch) | |
| tree | c27a621cf69f695e702a0a1a45119319b8e99f6f /rust/helpers/cpu.c | |
| parent | power: reset: POWER_RESET_TORADEX_EC should depend on ARCH_MXC (diff) | |
| download | kernel-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
