Skip to content

Commit

Permalink
media: cx25840: add kernel-doc description of struct cx25840_state
Browse files Browse the repository at this point in the history
This commit describes a device instance private data of the driver
(struct cx25840_state) in a kernel-doc style comment.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  • Loading branch information
maciejsszmigiero authored and mchehab committed Jul 4, 2018
1 parent c928d45 commit af16d0a
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions drivers/media/i2c/cx25840/cx25840-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,35 @@ enum cx25840_media_pads {
CX25840_NUM_PADS
};

/**
* struct cx25840_state - a device instance private data
* @c: i2c_client struct representing this device
* @sd: our V4L2 sub-device
* @hdl: our V4L2 control handler
* @volume: audio volume V4L2 control (non-cx2583x devices only)
* @mute: audio mute V4L2 control (non-cx2583x devices only)
* @pvr150_workaround: whether we enable workaround for Hauppauge PVR150
* hardware bug (audio dropping out)
* @radio: set if we are currently in the radio mode, otherwise
* the current mode is non-radio (that is, video)
* @std: currently set video standard
* @vid_input: currently set video input
* @aud_input: currently set audio input
* @audclk_freq: currently set audio sample rate
* @audmode: currently set audio mode (when in non-radio mode)
* @vbi_line_offset: vbi line number offset
* @id: exact device model
* @rev: raw device id read from the chip
* @is_initialized: whether we have already loaded firmware into the chip
* and initialized it
* @vbi_regs_offset: offset of vbi regs
* @fw_wait: wait queue to wake an initalization function up when
* firmware loading (on a separate workqueue) finishes
* @fw_work: a work that actually loads the firmware on a separate
* workqueue
* @ir_state: a pointer to chip IR controller private data
* @pads: array of supported chip pads (currently only a stub)
*/
struct cx25840_state {
struct i2c_client *c;
struct v4l2_subdev sd;
Expand All @@ -66,8 +95,8 @@ struct cx25840_state {
u32 rev;
int is_initialized;
unsigned vbi_regs_offset;
wait_queue_head_t fw_wait; /* wake up when the fw load is finished */
struct work_struct fw_work; /* work entry for fw load */
wait_queue_head_t fw_wait;
struct work_struct fw_work;
struct cx25840_ir_state *ir_state;
#if defined(CONFIG_MEDIA_CONTROLLER)
struct media_pad pads[CX25840_NUM_PADS];
Expand Down

0 comments on commit af16d0a

Please sign in to comment.