* [PATCH 2/2] hid: thingm: set new flag LED_HW_PLUGGABLE
@ 2016-04-17 20:51 Heiner Kallweit
0 siblings, 0 replies; only message in thread
From: Heiner Kallweit @ 2016-04-17 20:51 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires; +Cc: linux-input
Use recently introduced flag LED_HW_PLUGGABLE to avoid warnings when
the device is unplugged.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/hid/hid-thingm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hid/hid-thingm.c b/drivers/hid/hid-thingm.c
index a90463e..2507bbe 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);
}
--
2.8.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-17 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17 20:51 [PATCH 2/2] hid: thingm: set new flag LED_HW_PLUGGABLE Heiner Kallweit
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.