power: supply: sbs-battery: use correct flags field
authorMichael Nosthoff <committed@heine.so>
Fri, 16 Aug 2019 07:37:42 +0000 (09:37 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 2 Sep 2019 08:06:23 +0000 (10:06 +0200)
commit99956a9e08251a1234434b492875b1eaff502a12
treeb041514d1ff03e43c2866bd74e980dae7a4d8486
parentfa7da7449eb3172e9ef56ae69a1db237cb26c8df
power: supply: sbs-battery: use correct flags field

the type flag is stored in the chip->flags field not in the
client->flags field. This currently leads to never using the ti
specific health function as client->flags doesn't use that bit.
So it's always falling back to the general one.

Fixes: 76b16f4cdfb8 ("power: supply: sbs-battery: don't assume MANUFACTURER_DATA formats")
Cc: <stable@vger.kernel.org>
Signed-off-by: Michael Nosthoff <committed@heine.so>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c