Skip to content

Commit 3c92cb4

Browse files
author
Jiri Kosina
committed
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 <[email protected]>
1 parent 8c0ab55 commit 3c92cb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/hid/hid-playstation.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ static int dualsense_player_led_set_brightness(struct led_classdev *led, enum le
882882
spin_unlock_irqrestore(&ds->base.lock, flags);
883883

884884
schedule_work(&ds->output_worker);
885+
886+
return 0;
885887
}
886888

887889
static void dualsense_init_output_report(struct dualsense *ds, struct dualsense_output_report *rp,

0 commit comments

Comments
 (0)