aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/hid-playstation.c
diff options
context:
space:
mode:
authorJiri Kosina2021-10-27 10:04:10 +0200
committerJiri Kosina2021-10-27 10:05:07 +0200
commit3c92cb4cb60c71b574e47108ead8b6f0470850db (patch)
tree24242757715fad3a6947c7f8eaf70b18728f5baf /drivers/hid/hid-playstation.c
parent8c0ab553b072025530308f74b2c0223ec50dffe5 (diff)
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>
Diffstat (limited to 'drivers/hid/hid-playstation.c')
-rw-r--r--drivers/hid/hid-playstation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c
index 5cdfa71d1563..b1b5721b5d8f 100644
--- a/drivers/hid/hid-playstation.c
+++ b/drivers/hid/hid-playstation.c
@@ -882,6 +882,8 @@ static int dualsense_player_led_set_brightness(struct led_classdev *led, enum le
spin_unlock_irqrestore(&ds->base.lock, flags);
schedule_work(&ds->output_worker);
+
+ return 0;
}
static void dualsense_init_output_report(struct dualsense *ds, struct dualsense_output_report *rp,