Commit 3c92cb4c authored by Jiri Kosina's avatar Jiri Kosina

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: default avatarJiri Kosina <jkosina@suse.cz>
parent 8c0ab553
...@@ -882,6 +882,8 @@ static int dualsense_player_led_set_brightness(struct led_classdev *led, enum le ...@@ -882,6 +882,8 @@ static int dualsense_player_led_set_brightness(struct led_classdev *led, enum le
spin_unlock_irqrestore(&ds->base.lock, flags); spin_unlock_irqrestore(&ds->base.lock, flags);
schedule_work(&ds->output_worker); schedule_work(&ds->output_worker);
return 0;
} }
static void dualsense_init_output_report(struct dualsense *ds, struct dualsense_output_report *rp, static void dualsense_init_output_report(struct dualsense *ds, struct dualsense_output_report *rp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment