Home
last modified time | relevance | path

Searched refs:fl_cdev (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/leds/flash/
Dleds-sy7802.c173 static int sy7802_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness) in sy7802_flash_brightness_set() argument
175 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_flash_brightness_set()
176 struct led_flash_setting *s = &fl_cdev->brightness; in sy7802_flash_brightness_set()
194 static int sy7802_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in sy7802_strobe_set() argument
196 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_set()
238 static int sy7802_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in sy7802_strobe_get() argument
240 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_get()
250 static int sy7802_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in sy7802_timeout_set() argument
252 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_timeout_set()
253 struct led_flash_setting *s = &fl_cdev->timeout; in sy7802_timeout_set()
[all …]
Dleds-mt6370-flash.c154 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
[all …]
Dleds-mt6360.c208 static int mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in mt6360_flash_brightness_set() argument
220 static int _mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in _mt6360_flash_brightness_set() argument
224 container_of(fl_cdev, struct mt6360_led, flash); in _mt6360_flash_brightness_set()
226 struct led_flash_setting *s = &fl_cdev->brightness; in _mt6360_flash_brightness_set()
234 static int mt6360_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in mt6360_strobe_set() argument
237 container_of(fl_cdev, struct mt6360_led, flash); in mt6360_strobe_set()
239 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6360_strobe_set()
240 struct led_flash_setting *s = &fl_cdev->brightness; in mt6360_strobe_set()
290 ret = _mt6360_flash_brightness_set(fl_cdev, state ? s->val : s->min); in mt6360_strobe_set()
310 static int mt6360_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in mt6360_strobe_get() argument
[all …]