aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorChris Morgan <[email protected]>2022-10-10 14:13:29 +0000
committerSebastian Reichel <[email protected]>2022-10-19 23:24:15 +0000
commit883babd43dcf8b44db36d015a08cbf0066a5270d (patch)
tree713bc204a80b63aa6f233ea000989d36b32229f3 /net/bluetooth/hci_request.c
parentpower: supply: rk817: check correct variable (diff)
downloadkernel-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