Lines Matching +full:sub +full:- +full:device
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
34 * struct v4l2_flash_ops - V4L2 flash operations
38 * @intensity_to_led_brightness: Convert intensity to brightness in a device
40 * @led_brightness_to_intensity: convert brightness to intensity in a device
53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
56 * @intensity: non-flash strobe constraints for the LED
58 * device can report; corresponding LED_FAULT* bit
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
73 * @iled_cdev: LED class device representing indicator LED associated
74 * with the LED flash class device
76 * @sd: V4L2 sub-device
79 * the sub-device state
92 * v4l2_subdev_to_v4l2_flash - Returns a &struct v4l2_flash from the
104 * v4l2_ctrl_to_v4l2_flash - Returns a &struct v4l2_flash from the
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
118 * @fwn: fwnode_handle of the LED, may be NULL if the same as device's
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.
133 struct device *dev, struct fwnode_handle *fwn,
138 * v4l2_flash_indicator_init - initialize V4L2 indicator sub-device
139 * @dev: flash device, e.g. an I2C device
140 * @fwn: fwnode_handle of the LED, may be NULL if the same as device's
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.
154 struct device *dev, struct fwnode_handle *fwn,
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.
167 struct device *dev, struct fwnode_handle *fwn, in v4l2_flash_init()
175 struct device *dev, struct fwnode_handle *fwn, in v4l2_flash_indicator_init()