Lines Matching refs:fled_cdev
86 struct led_classdev_flash fled_cdev; member
129 static struct lm3601x_led *fled_cdev_to_led(struct led_classdev_flash *fled_cdev) in fled_cdev_to_led() argument
131 return container_of(fled_cdev, struct lm3601x_led, fled_cdev); in fled_cdev_to_led()
172 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in lm3601x_brightness_set() local
173 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_brightness_set()
205 static int lm3601x_strobe_set(struct led_classdev_flash *fled_cdev, in lm3601x_strobe_set() argument
208 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_set()
242 static int lm3601x_flash_brightness_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_brightness_set() argument
245 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_brightness_set()
268 static int lm3601x_flash_timeout_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_timeout_set() argument
271 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_timeout_set()
282 static int lm3601x_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in lm3601x_strobe_get() argument
284 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_get()
301 static int lm3601x_flash_fault_get(struct led_classdev_flash *fled_cdev, in lm3601x_flash_fault_get() argument
304 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_fault_get()
328 led->fled_cdev.ops = &flash_ops; in lm3601x_register_leds()
330 setting = &led->fled_cdev.timeout; in lm3601x_register_leds()
336 setting = &led->fled_cdev.brightness; in lm3601x_register_leds()
342 led_cdev = &led->fled_cdev.led_cdev; in lm3601x_register_leds()
354 &led->fled_cdev, &init_data); in lm3601x_register_leds()