Lines Matching refs:cdev
197 struct led_classdev cdev; member
213 static void idp_led_set(struct led_classdev *cdev, in idp_led_set() argument
216 struct idp_led *led = container_of(cdev, in idp_led_set()
217 struct idp_led, cdev); in idp_led_set()
228 static enum led_brightness idp_led_get(struct led_classdev *cdev) in idp_led_get() argument
230 struct idp_led *led = container_of(cdev, in idp_led_get()
231 struct idp_led, cdev); in idp_led_get()
250 led->cdev.name = idp_leds[i].name; in idp_leds_init()
251 led->cdev.brightness_set = idp_led_set; in idp_leds_init()
252 led->cdev.brightness_get = idp_led_get; in idp_leds_init()
253 led->cdev.default_trigger = idp_leds[i].trigger; in idp_leds_init()
260 if (led_classdev_register(NULL, &led->cdev) < 0) { in idp_leds_init()