Commit 8ae237ec authored by Ikjoon Jang's avatar Ikjoon Jang Committed by Sebastian Reichel
Browse files

power: supply: sbs-battery: keep error code when get_property() fails

Commit 395a7251 (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: 395a7251

 (power: supply: sbs-battery: don't assume i2c errors as battery disconnect)

Signed-off-by: default avatarIkjoon Jang <ikjn@chromium.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 5069185f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment