diff options
author | Ikjoon Jang <ikjn@chromium.org> | 2020-09-03 11:04:40 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-10-06 11:46:53 +0200 |
commit | 8ae237ec0af9f754c1da00913646f3c46a99a1cb (patch) | |
tree | a8e4ce2beaa7a0f1246c32af1b26fa539d7a3bfe /drivers/rtc/rtc-lpc32xx.c | |
parent | 5069185fc18e810715a91d80fcd075e03add600c (diff) |
power: supply: sbs-battery: keep error code when get_property() fails
Commit 395a7251dc2b (power: supply: sbs-battery: don't assume
i2c errors as battery disconnect) overwrites the original error code
returned from internal functions. On such a sporadic i2c error,
a user will get a wrong value without errors.
Fixes: 395a7251dc2b (power: supply: sbs-battery: don't assume i2c errors as battery disconnect)
Signed-off-by: Ikjoon Jang <ikjn@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/rtc/rtc-lpc32xx.c')
0 files changed, 0 insertions, 0 deletions