Tag: 2edd69a81dd4e8068bb512ffcc3959c77fc182ea

power: bq27xxx_battery: fix signedness bug in bq27xxx_battery_read_health()

Author: Andrzej Hajda <a.hajda@samsung.com> We need flags to be signed for the error handling to work. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Fixes: 74aab849f342 (‘power: bq27xxx_battery: Cleanup health checking’) Signed-off-by: Andrzej Hajda Signed-off-by: Dan Carpenter Acked-By: Pali Rohár Acked-by: Andrew F. Davis Signed-off-by: Sebastian Reichel — drivers/power/bq27xxx_battery.c | …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.