Lines Matching defs:flash

8 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
78 struct led_classdev_flash flash;
160 container_of(lcdev, struct mt6360_led, flash.led_cdev);
170 * Only one set of flash control logic, use the flag to avoid strobe is
212 * Due to the current spike when turning on flash, let brightness to be
224 container_of(fl_cdev, struct mt6360_led, flash);
237 container_of(fl_cdev, struct mt6360_led, flash);
249 * Only one set of flash control logic, use the flag to avoid torch is
276 * If the flash need to be on, config the flash current ramping up to
285 * For the flash turn on/off, HW rampping up/down time is 5ms/500us,
303 container_of(fl_cdev, struct mt6360_led, flash);
316 container_of(fl_cdev, struct mt6360_led, flash);
333 container_of(fl_cdev, struct mt6360_led, flash);
419 struct led_classdev_flash *flash = &led->flash;
443 flash->led_cdev.brightness = flash->led_cdev.max_brightness;
446 flash->led_cdev.brightness =
447 min(level, flash->led_cdev.max_brightness);
450 flash->led_cdev.brightness = LED_OFF;
453 return mt6360_torch_brightness_set(&flash->led_cdev,
454 flash->led_cdev.brightness);
461 struct led_classdev_flash *flash = v4l2_flash->fled_cdev;
462 struct mt6360_led *led = container_of(flash, struct mt6360_led, flash);
494 lcdev = &led->flash.led_cdev;
574 dev_err(parent, "Failed to init %d flash state\n",
579 ret = devm_led_classdev_flash_register_ext(parent, &led->flash,
582 dev_err(parent, "Couldn't register flash %d\n",
589 &led->flash,
694 struct led_classdev_flash *flash = &led->flash;
695 struct led_classdev *lcdev = &flash->led_cdev;
716 ret = fwnode_property_read_u32(init_data->fwnode, "flash-max-microamp",
720 "Not specified flash-max-microamp, config to the minimum\n");
726 s = &flash->brightness;
732 * Always configure as min level when off to prevent flash current
735 ret = _mt6360_flash_brightness_set(flash, s->min);
740 "flash-max-timeout-us", &val);
743 "Not specified flash-max-timeout-us, config to the minimum\n");
749 s = &flash->timeout;
754 flash->ops = &mt6360_flash_ops;