Lines Matching full:leds
12 #include <linux/leds.h>
47 struct input_led leds[]; member
87 struct input_leds *leds; in input_leds_connect() local
98 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
99 if (!leds) in input_leds_connect()
102 leds->num_leds = num_leds; in input_leds_connect()
104 leds->handle.dev = dev; in input_leds_connect()
105 leds->handle.handler = handler; in input_leds_connect()
106 leds->handle.name = "leds"; in input_leds_connect()
107 leds->handle.private = leds; in input_leds_connect()
109 error = input_register_handle(&leds->handle); in input_leds_connect()
113 error = input_open_device(&leds->handle); in input_leds_connect()
122 led = &leds->leds[led_no]; in input_leds_connect()
123 led->handle = &leds->handle; in input_leds_connect()
154 struct input_led *led = &leds->leds[led_no]; in input_leds_connect()
160 input_close_device(&leds->handle); in input_leds_connect()
163 input_unregister_handle(&leds->handle); in input_leds_connect()
166 kfree(leds); in input_leds_connect()
172 struct input_leds *leds = handle->private; in input_leds_disconnect() local
175 for (i = 0; i < leds->num_leds; i++) { in input_leds_disconnect()
176 struct input_led *led = &leds->leds[i]; in input_leds_disconnect()
185 kfree(leds); in input_leds_disconnect()
201 .name = "leds",
219 MODULE_DESCRIPTION("Input -> LEDs Bridge");