Lines Matching full:flash

6 #include <linux/led-class-flash.h>
11 #include <media/v4l2-flash-led-class.h>
48 struct led_classdev_flash flash; member
56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set()
84 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_get()
120 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_brightness_set()
137 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_set()
153 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_get()
174 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_timeout_set()
190 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_fault_get()
243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in rt4505_flash_external_strobe_set() local
245 container_of(flash, struct rt4505_priv, flash); in rt4505_flash_external_strobe_set()
264 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_v4l2_config() local
265 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_v4l2_config()
293 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_flash_properties() local
294 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_flash_properties()
312 ret = fwnode_property_read_u32(child, "flash-max-microamp", &val); in rt4505_init_flash_properties()
314 dev_warn(priv->dev, "flash-max-microamp DT property missing\n"); in rt4505_init_flash_properties()
319 s = &flash->brightness; in rt4505_init_flash_properties()
324 ret = fwnode_property_read_u32(child, "flash-max-timeout-us", &val); in rt4505_init_flash_properties()
327 "flash-max-timeout-us DT property missing\n"); in rt4505_init_flash_properties()
333 s = &flash->timeout; in rt4505_init_flash_properties()
338 flash->ops = &rt4505_flash_ops; in rt4505_init_flash_properties()
376 ret = devm_led_classdev_flash_register_ext(priv->dev, &priv->flash, in rt4505_probe()
379 dev_err(priv->dev, "Failed to register flash\n"); in rt4505_probe()
385 &priv->flash, &v4l2_flash_ops, in rt4505_probe()
388 dev_err(priv->dev, "Failed to register v4l2 flash\n"); in rt4505_probe()