HID: thingm: set new flag LED_HW_PLUGGABLE
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 17 Apr 2016 20:51:46 +0000 (22:51 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Apr 2016 11:01:38 +0000 (13:01 +0200)
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>
drivers/hid/hid-thingm.c

index a90463ecd75c78280451a3c6143bf6929825b449..2507bbe0eea7fac5cc27f66ac49d778d85b01169 100644 (file)
@@ -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);
 }