power: supply: ltc2941: simplify Qlsb calculation
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 11 Jan 2022 02:32:40 +0000 (03:32 +0100)
committerSebastian Reichel <sre@kernel.org>
Sun, 13 Feb 2022 21:21:42 +0000 (22:21 +0100)
commitcf215c37f581c4afd6a4880eeb9f4ac70d000c32
tree9275ebf064e2ea00e8894ad4c208c3d9b4acf5c3
parent8f5b373960f976cf80e54636a60637cbe9718f66
power: supply: ltc2941: simplify Qlsb calculation

Replace two divisions with a subtraction+shift for a small code size
improvement and less brackets.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ltc2941-battery-gauge.c