power: supply: ab8500: clean up warnings found by checkpatch
authorColin Ian King <colin.king@canonical.com>
Tue, 20 Jul 2021 08:29:22 +0000 (09:29 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 13 Aug 2021 15:21:57 +0000 (17:21 +0200)
commit38334231965e9a75558e413d1f5a23357994f065
treee3ae4a7e4968ed05c4b8f1766c8ad77861cbfc80
parentc02aa89b7435c852aad9b2f39bdfd8ba8e22d3dc
power: supply: ab8500: clean up warnings found by checkpatch

Clean up a handful of checkpatch warnings:
 - static const char * array should probably be static const char * const
 - function arguments should have identifier names
 - else should follow close brace '}'
 - suspect code indent for conditional statements
 - unnecessary parentheses in an if condition
 - avoid multiple line dereference
 - remove debug showing function execution, ftrace can trace these better
 - prefer 'long' over 'long int' as the int is unnecessary

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_chargalg.c