v4l2_flash_init — initialize V4L2 flash led sub-device
struct v4l2_flash * v4l2_flash_init ( | struct device * dev, |
struct device_node * of_node, | |
struct led_classdev_flash * fled_cdev, | |
struct led_classdev_flash * iled_cdev, | |
const struct v4l2_flash_ops * ops, | |
struct v4l2_flash_config * config) ; |
dev
flash device, e.g. an I2C device
of_node
of_node of the LED, may be NULL if the same as device's
fled_cdev
LED flash class device to wrap
iled_cdev
LED flash class device representing indicator LED associated with fled_cdev, may be NULL
ops
V4L2 Flash device ops
config
initialization data for V4L2 Flash sub-device