battery/backlight: Fix integer overflows

Signed-off-by: Michael Buesch <m@bues.ch>
backlight: Avoid possible integer overflow

Signed-off-by: Michael Buesch <m@bues.ch>