Add led color and change name with <name>:<color>:<type> syntax
This commit is contained in:
parent
52436b2045
commit
944299048f
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ static void virtual_led_set_brightness(struct led_classdev *led_cdev, enum led_b
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct led_classdev virtual_led = {
|
static struct led_classdev virtual_led = {
|
||||||
.name = "flo_led",
|
.name = "flo-led:white:led-0",
|
||||||
|
.color = LED_COLOR_ID_WHITE,
|
||||||
.brightness = 0,
|
.brightness = 0,
|
||||||
.max_brightness = 255,
|
.max_brightness = 255,
|
||||||
.brightness_set = virtual_led_set_brightness
|
.brightness_set = virtual_led_set_brightness
|
||||||
|
|
Loading…
Add table
Reference in a new issue