Lines Matching refs:led
216 struct idp_led *led = container_of(cdev, in idp_led_set() local
221 reg &= ~led->mask; in idp_led_set()
223 reg |= led->mask; in idp_led_set()
230 struct idp_led *led = container_of(cdev, in idp_led_get() local
233 return (IDP_CPLD_LED_CONTROL & led->mask) ? LED_OFF : LED_FULL; in idp_led_get()
244 struct idp_led *led; in idp_leds_init() local
246 led = kzalloc(sizeof(*led), GFP_KERNEL); in idp_leds_init()
247 if (!led) in idp_leds_init()
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()
256 led->mask = IDP_HB_LED; in idp_leds_init()
258 led->mask = IDP_BUSY_LED; in idp_leds_init()
260 if (led_classdev_register(NULL, &led->cdev) < 0) { in idp_leds_init()
261 kfree(led); in idp_leds_init()