diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-04-17 22:51:46 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-04-18 13:01:38 +0200 |
commit | a4362fd6da7ab8b08028734004df486847ea593e (patch) | |
tree | e2896af87ae368231012fc5907163f52f7ca0e3d | |
parent | 91540ccc9c4554c8bbb8b8a1be0b255a378b6475 (diff) | |
download | linux-a4362fd6da7ab8b08028734004df486847ea593e.tar.gz linux-a4362fd6da7ab8b08028734004df486847ea593e.tar.bz2 linux-a4362fd6da7ab8b08028734004df486847ea593e.zip |
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>
-rw-r--r-- | drivers/hid/hid-thingm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |