diff options
author | Chris Morgan <macromorgan@hotmail.com> | 2022-10-10 09:13:29 -0500 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2022-10-20 01:24:15 +0200 |
commit | 883babd43dcf8b44db36d015a08cbf0066a5270d (patch) | |
tree | 713bc204a80b63aa6f233ea000989d36b32229f3 /scripts/gcc-plugins/gcc-generate-gimple-pass.h | |
parent | 172c65e673cc3998059c9dfb3faf48e72e6fc236 (diff) |
power: supply: rk817: Change rk817_chg_cur_to_reg to int
Change return value of rk817_chg_cur_to_reg from u8 to int. If the
function fails to find a suitable value it returns a -EINVAL, but
defined as a u8 it would not return correctly. Additionally, change
defined variable that stores return value from u8 to int.
Fixes: 11cb8da0189b ("power: supply: Add charger driver for Rockchip RK817")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
0 files changed, 0 insertions, 0 deletions