diff options
author | Maarten ter Huurne <maarten@treewalker.org> | 2016-02-28 17:05:48 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-03-03 15:05:08 +0100 |
commit | 754645342a35e422782f7a59545448ff9e933739 (patch) | |
tree | 74837f3873a2d34b2d089b13d48dbe2321386312 /lib/sg_split.c | |
parent | power_supply: lp8788-charger: initialize boolean 'found' (diff) | |
download | linux-754645342a35e422782f7a59545448ff9e933739.tar.xz linux-754645342a35e422782f7a59545448ff9e933739.zip |
jz4740-battery: Correct voltage change check
The check is supposed to avoid redundant update notifications, so it
should check for the difference between old and new voltage exceeding
a threshold.
Also make sure the result of a failed read is never stored.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'lib/sg_split.c')
0 files changed, 0 insertions, 0 deletions