Lines Matching refs:wkl
168 struct wilco_keyboard_leds *wkl = in wilco_keyboard_leds_set() local
170 return set_kbbl(wkl->ec, brightness); in wilco_keyboard_leds_set()
175 struct wilco_keyboard_leds *wkl; in wilco_keyboard_leds_init() local
188 wkl = devm_kzalloc(ec->dev, sizeof(*wkl), GFP_KERNEL); in wilco_keyboard_leds_init()
189 if (!wkl) in wilco_keyboard_leds_init()
192 wkl->ec = ec; in wilco_keyboard_leds_init()
193 wkl->keyboard.name = "platform::kbd_backlight"; in wilco_keyboard_leds_init()
194 wkl->keyboard.max_brightness = 100; in wilco_keyboard_leds_init()
195 wkl->keyboard.flags = LED_CORE_SUSPENDRESUME; in wilco_keyboard_leds_init()
196 wkl->keyboard.brightness_set_blocking = wilco_keyboard_leds_set; in wilco_keyboard_leds_init()
200 wkl->keyboard.brightness = ret; in wilco_keyboard_leds_init()
202 return devm_led_classdev_register(ec->dev, &wkl->keyboard); in wilco_keyboard_leds_init()