Lines Matching refs:fl_cdev

154 static int mt6370_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness)  in mt6370_flash_brightness_set()  argument
164 static int _mt6370_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness) in _mt6370_flash_brightness_set() argument
166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in _mt6370_flash_brightness_set()
168 struct led_flash_setting *setting = &fl_cdev->brightness; in _mt6370_flash_brightness_set()
195 static int mt6370_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in mt6370_strobe_set() argument
197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_set()
199 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6370_strobe_set()
200 struct led_flash_setting *s = &fl_cdev->brightness; in mt6370_strobe_set()
238 ret = _mt6370_flash_brightness_set(fl_cdev, state ? s->val : s->min); in mt6370_strobe_set()
260 static int mt6370_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in mt6370_strobe_get() argument
262 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_get()
272 static int mt6370_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in mt6370_timeout_set() argument
274 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_timeout_set()
276 struct led_flash_setting *s = &fl_cdev->timeout; in mt6370_timeout_set()
282 static int mt6370_fault_get(struct led_classdev_flash *fl_cdev, u32 *fault) in mt6370_fault_get() argument
284 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_fault_get()