mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
HID: thingm: set new flag LED_HW_PLUGGABLE
Use recently introduced flag LED_HW_PLUGGABLE to avoid warnings when the device is unplugged. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
91540ccc9c
commit
a4362fd6da
1 changed files with 1 additions and 0 deletions
|
@ -165,6 +165,7 @@ static int thingm_init_led(struct thingm_led *led, const char *color_name,
|
|||
led->ldev.name = led->name;
|
||||
led->ldev.max_brightness = 255;
|
||||
led->ldev.brightness_set_blocking = thingm_led_set;
|
||||
led->ldev.flags = LED_HW_PLUGGABLE;
|
||||
led->rgb = rgb;
|
||||
return devm_led_classdev_register(&rgb->tdev->hdev->dev, &led->ldev);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue