diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-08 17:23:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-09 09:19:35 -0400 |
commit | 0d56015d80a2c187c107d7780b89712bda8eee2e (patch) | |
tree | 280d3872a17d00f582d36031dbe8214a47126c75 | |
parent | dba2d12ae49217254cfc0452c68f1a4e2d2f1e4b (diff) |
[media] v4l2-flash-led-class.h: document v4l2_flash_ops
Fix this warning:
./include/media/v4l2-flash-led-class.h:103: WARNING: c:type reference target not found: v4l2_flash_ops
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | include/media/v4l2-flash-led-class.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/media/v4l2-flash-led-class.h b/include/media/v4l2-flash-led-class.h index 3d184ab52274..b0fe4d6f4a5f 100644 --- a/include/media/v4l2-flash-led-class.h +++ b/include/media/v4l2-flash-led-class.h | |||
@@ -20,7 +20,7 @@ struct led_classdev; | |||
20 | struct v4l2_flash; | 20 | struct v4l2_flash; |
21 | enum led_brightness; | 21 | enum led_brightness; |
22 | 22 | ||
23 | /* | 23 | /** |
24 | * struct v4l2_flash_ctrl_data - flash control initialization data, filled | 24 | * struct v4l2_flash_ctrl_data - flash control initialization data, filled |
25 | * basing on the features declared by the LED flash | 25 | * basing on the features declared by the LED flash |
26 | * class driver in the v4l2_flash_config | 26 | * class driver in the v4l2_flash_config |
@@ -33,14 +33,21 @@ struct v4l2_flash_ctrl_data { | |||
33 | u32 cid; | 33 | u32 cid; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /** | ||
37 | * struct v4l2_flash_ops - V4L2 flash operations | ||
38 | * | ||
39 | * @external_strobe_set: Setup strobing the flash by hardware pin state | ||
40 | * assertion. | ||
41 | * @intensity_to_led_brightness: Convert intensity to brightness in a device | ||
42 | * specific manner | ||
43 | * @led_brightness_to_intensity: convert brightness to intensity in a device | ||
44 | * specific manner. | ||
45 | */ | ||
36 | struct v4l2_flash_ops { | 46 | struct v4l2_flash_ops { |
37 | /* setup strobing the flash by hardware pin state assertion */ | ||
38 | int (*external_strobe_set)(struct v4l2_flash *v4l2_flash, | 47 | int (*external_strobe_set)(struct v4l2_flash *v4l2_flash, |
39 | bool enable); | 48 | bool enable); |
40 | /* convert intensity to brightness in a device specific manner */ | ||
41 | enum led_brightness (*intensity_to_led_brightness) | 49 | enum led_brightness (*intensity_to_led_brightness) |
42 | (struct v4l2_flash *v4l2_flash, s32 intensity); | 50 | (struct v4l2_flash *v4l2_flash, s32 intensity); |
43 | /* convert brightness to intensity in a device specific manner */ | ||
44 | s32 (*led_brightness_to_intensity) | 51 | s32 (*led_brightness_to_intensity) |
45 | (struct v4l2_flash *v4l2_flash, enum led_brightness); | 52 | (struct v4l2_flash *v4l2_flash, enum led_brightness); |
46 | }; | 53 | }; |