Skip to content

Commit

Permalink
[media] v4l2-flash-led-class.h: document v4l2_flash_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Sep 9, 2016
1 parent dba2d12 commit 0d56015
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions include/media/v4l2-flash-led-class.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct led_classdev;
struct v4l2_flash;
enum led_brightness;

/*
/**
* struct v4l2_flash_ctrl_data - flash control initialization data, filled
* basing on the features declared by the LED flash
* class driver in the v4l2_flash_config
Expand All @@ -33,14 +33,21 @@ struct v4l2_flash_ctrl_data {
u32 cid;
};

/**
* struct v4l2_flash_ops - V4L2 flash operations
*
* @external_strobe_set: Setup strobing the flash by hardware pin state
* assertion.
* @intensity_to_led_brightness: Convert intensity to brightness in a device
* specific manner
* @led_brightness_to_intensity: convert brightness to intensity in a device
* specific manner.
*/
struct v4l2_flash_ops {
/* setup strobing the flash by hardware pin state assertion */
int (*external_strobe_set)(struct v4l2_flash *v4l2_flash,
bool enable);
/* convert intensity to brightness in a device specific manner */
enum led_brightness (*intensity_to_led_brightness)
(struct v4l2_flash *v4l2_flash, s32 intensity);
/* convert brightness to intensity in a device specific manner */
s32 (*led_brightness_to_intensity)
(struct v4l2_flash *v4l2_flash, enum led_brightness);
};
Expand Down

0 comments on commit 0d56015

Please sign in to comment.