提交 a4362fd6 编写于 作者: H Heiner Kallweit 提交者: Jiri Kosina

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: NHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 91540ccc
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册