Skip to content

Commit af16d0a

Browse files
maciejsszmigieromchehab
authored andcommitted
media: cx25840: add kernel-doc description of struct cx25840_state
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent c928d45 commit af16d0a

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

drivers/media/i2c/cx25840/cx25840-core.h

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,35 @@ enum cx25840_media_pads {
4545
CX25840_NUM_PADS
4646
};
4747

48+
/**
49+
* struct cx25840_state - a device instance private data
50+
* @c: i2c_client struct representing this device
51+
* @sd: our V4L2 sub-device
52+
* @hdl: our V4L2 control handler
53+
* @volume: audio volume V4L2 control (non-cx2583x devices only)
54+
* @mute: audio mute V4L2 control (non-cx2583x devices only)
55+
* @pvr150_workaround: whether we enable workaround for Hauppauge PVR150
56+
* hardware bug (audio dropping out)
57+
* @radio: set if we are currently in the radio mode, otherwise
58+
* the current mode is non-radio (that is, video)
59+
* @std: currently set video standard
60+
* @vid_input: currently set video input
61+
* @aud_input: currently set audio input
62+
* @audclk_freq: currently set audio sample rate
63+
* @audmode: currently set audio mode (when in non-radio mode)
64+
* @vbi_line_offset: vbi line number offset
65+
* @id: exact device model
66+
* @rev: raw device id read from the chip
67+
* @is_initialized: whether we have already loaded firmware into the chip
68+
* and initialized it
69+
* @vbi_regs_offset: offset of vbi regs
70+
* @fw_wait: wait queue to wake an initalization function up when
71+
* firmware loading (on a separate workqueue) finishes
72+
* @fw_work: a work that actually loads the firmware on a separate
73+
* workqueue
74+
* @ir_state: a pointer to chip IR controller private data
75+
* @pads: array of supported chip pads (currently only a stub)
76+
*/
4877
struct cx25840_state {
4978
struct i2c_client *c;
5079
struct v4l2_subdev sd;
@@ -66,8 +95,8 @@ struct cx25840_state {
6695
u32 rev;
6796
int is_initialized;
6897
unsigned vbi_regs_offset;
69-
wait_queue_head_t fw_wait; /* wake up when the fw load is finished */
70-
struct work_struct fw_work; /* work entry for fw load */
98+
wait_queue_head_t fw_wait;
99+
struct work_struct fw_work;
71100
struct cx25840_ir_state *ir_state;
72101
#if defined(CONFIG_MEDIA_CONTROLLER)
73102
struct media_pad pads[CX25840_NUM_PADS];

0 commit comments

Comments
 (0)