From a4362fd6da7ab8b08028734004df486847ea593e Mon Sep 17 00:00:00 2001 From: Heiner Kallweit Date: Sun, 17 Apr 2016 22:51:46 +0200 Subject: 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 Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- drivers/hid/hid-thingm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/hid') diff --git a/drivers/hid/hid-thingm.c b/drivers/hid/hid-thingm.c index a90463ecd75c..2507bbe0eea7 100644 --- a/drivers/hid/hid-thingm.c +++ b/drivers/hid/hid-thingm.c @@ -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); } -- cgit v1.2.3