Lines Matching +full:on +full:- +full:flash
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * V4L2 flash LED sub-device registration helpers.
12 #include <media/v4l2-ctrls.h>
13 #include <media/v4l2-subdev.h>
21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled
22 * basing on the features declared by the LED flash
25 * @cid: contains v4l2 flash control id if the config
34 * struct v4l2_flash_ops - V4L2 flash operations
36 * @external_strobe_set: Setup strobing the flash by hardware pin state
53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
56 * @intensity: non-flash strobe constraints for the LED
57 * @flash_faults: bitmask of flash faults that the LED flash class
60 * <linux/led-class-flash.h>
71 * struct v4l2_flash - Flash sub-device context
72 * @fled_cdev: LED flash class device controlled by this sub-device
74 * with the LED flash class device
75 * @ops: V4L2 specific flash ops
76 * @sd: V4L2 sub-device
77 * @hdl: flash controls handler
79 * the sub-device state
92 * v4l2_subdev_to_v4l2_flash - Returns a &struct v4l2_flash from the
93 * &struct v4l2_subdev embedded on it.
104 * v4l2_ctrl_to_v4l2_flash - Returns a &struct v4l2_flash from the
105 * &struct v4l2_ctrl embedded on it.
111 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash()
116 * v4l2_flash_init - initialize V4L2 flash led sub-device
117 * @dev: flash device, e.g. an I2C device
119 * @fled_cdev: LED flash class device to wrap
120 * @ops: V4L2 Flash device ops
121 * @config: initialization data for V4L2 Flash sub-device
123 * Create V4L2 Flash sub-device wrapping given LED subsystem device.
124 * The ops pointer is stored by the V4L2 flash framework. No
138 * v4l2_flash_indicator_init - initialize V4L2 indicator sub-device
139 * @dev: flash device, e.g. an I2C device
141 * @iled_cdev: LED flash class device representing the indicator LED
142 * @config: initialization data for V4L2 Flash sub-device
144 * Create V4L2 Flash sub-device wrapping given LED subsystem device.
145 * The ops pointer is stored by the V4L2 flash framework. No
158 * v4l2_flash_release - release V4L2 Flash sub-device
159 * @v4l2_flash: the V4L2 Flash sub-device to release
161 * Release V4L2 Flash sub-device.