Lines Matching refs:fled_cdev

35 	int (*flash_brightness_set)(struct led_classdev_flash *fled_cdev,
38 int (*flash_brightness_get)(struct led_classdev_flash *fled_cdev,
41 int (*strobe_set)(struct led_classdev_flash *fled_cdev, bool state);
43 int (*strobe_get)(struct led_classdev_flash *fled_cdev, bool *state);
45 int (*timeout_set)(struct led_classdev_flash *fled_cdev, u32 timeout);
47 int (*fault_get)(struct led_classdev_flash *fled_cdev, u32 *fault);
99 struct led_classdev_flash *fled_cdev,
109 void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev);
112 struct led_classdev_flash *fled_cdev,
117 struct led_classdev_flash *fled_cdev);
122 struct led_classdev_flash *fled_cdev, in led_classdev_flash_register_ext() argument
128 static inline void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev) {}; in led_classdev_flash_unregister() argument
130 struct led_classdev_flash *fled_cdev, in devm_led_classdev_flash_register_ext() argument
137 struct led_classdev_flash *fled_cdev) in devm_led_classdev_flash_unregister() argument
143 struct led_classdev_flash *fled_cdev) in led_classdev_flash_register() argument
145 return led_classdev_flash_register_ext(parent, fled_cdev, NULL); in led_classdev_flash_register()
149 struct led_classdev_flash *fled_cdev) in devm_led_classdev_flash_register() argument
151 return devm_led_classdev_flash_register_ext(parent, fled_cdev, NULL); in devm_led_classdev_flash_register()
163 static inline int led_set_flash_strobe(struct led_classdev_flash *fled_cdev, in led_set_flash_strobe() argument
166 if (!fled_cdev) in led_set_flash_strobe()
168 return fled_cdev->ops->strobe_set(fled_cdev, state); in led_set_flash_strobe()
180 static inline int led_get_flash_strobe(struct led_classdev_flash *fled_cdev, in led_get_flash_strobe() argument
183 if (!fled_cdev) in led_get_flash_strobe()
185 if (fled_cdev->ops->strobe_get) in led_get_flash_strobe()
186 return fled_cdev->ops->strobe_get(fled_cdev, state); in led_get_flash_strobe()
200 int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
212 int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
223 int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout);
234 int led_get_flash_fault(struct led_classdev_flash *fled_cdev, u32 *fault);