Lines Matching full:leds
12 #include <linux/leds.h>
53 struct input_led leds[] __counted_by(num_leds);
93 struct input_leds *leds; in input_leds_connect() local
104 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
105 if (!leds) in input_leds_connect()
108 leds->num_leds = num_leds; in input_leds_connect()
110 leds->handle.dev = dev; in input_leds_connect()
111 leds->handle.handler = handler; in input_leds_connect()
112 leds->handle.name = "leds"; in input_leds_connect()
113 leds->handle.private = leds; in input_leds_connect()
115 error = input_register_handle(&leds->handle); in input_leds_connect()
119 error = input_open_device(&leds->handle); in input_leds_connect()
128 led = &leds->leds[led_no]; in input_leds_connect()
129 led->handle = &leds->handle; in input_leds_connect()
160 struct input_led *led = &leds->leds[led_no]; in input_leds_connect()
166 input_close_device(&leds->handle); in input_leds_connect()
169 input_unregister_handle(&leds->handle); in input_leds_connect()
172 kfree(leds); in input_leds_connect()
178 struct input_leds *leds = handle->private; in input_leds_disconnect() local
181 for (i = 0; i < leds->num_leds; i++) { in input_leds_disconnect()
182 struct input_led *led = &leds->leds[i]; in input_leds_disconnect()
191 kfree(leds); in input_leds_disconnect()
207 .name = "leds",
225 MODULE_DESCRIPTION("Input -> LEDs Bridge");