]> git.baikalelectronics.ru Git - kernel.git/commit
HID: playstation: fix return from dualsense_player_led_set_brightness()
authorJiri Kosina <jkosina@suse.cz>
Wed, 27 Oct 2021 08:04:10 +0000 (10:04 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Oct 2021 08:05:07 +0000 (10:05 +0200)
commitba1af20256c4335f0dcf5e69896cccfa2681c59f
tree24242757715fad3a6947c7f8eaf70b18728f5baf
parent3456cd5b3b4c986d7cf6cf50690983f4afaeb05a
HID: playstation: fix return from dualsense_player_led_set_brightness()

brightness_set_blocking() callback expects function returning int. This fixes
the follwoing build failure:

drivers/hid/hid-playstation.c: In function â€˜dualsense_player_led_set_brightness’:
drivers/hid/hid-playstation.c:885:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-playstation.c