diff options
| author | Chris Morgan <[email protected]> | 2022-10-10 14:13:29 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2022-10-19 23:24:15 +0000 |
| commit | 883babd43dcf8b44db36d015a08cbf0066a5270d (patch) | |
| tree | 713bc204a80b63aa6f233ea000989d36b32229f3 /net/bluetooth/hci_request.c | |
| parent | power: supply: rk817: check correct variable (diff) | |
| download | kernel-883babd43dcf8b44db36d015a08cbf0066a5270d.tar.gz kernel-883babd43dcf8b44db36d015a08cbf0066a5270d.zip | |
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
