Skip to content

Commit 2f74b7c

Browse files
palosaarimchehab
authored andcommitted
[media] rtl2832: add kernel-doc comments for platform_data
Add kernel-doc comments for platform_data configuration structure. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 61c309f commit 2f74b7c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

drivers/media/dvb-frontends/rtl2832.h

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,20 @@
2525
#include <linux/dvb/frontend.h>
2626
#include <linux/i2c-mux.h>
2727

28+
/**
29+
* struct rtl2832_platform_data - Platform data for the rtl2832 driver
30+
* @clk: Clock frequency (4000000, 16000000, 25000000, 28800000).
31+
* @tuner: Used tuner model.
32+
* @get_dvb_frontend: Get DVB frontend.
33+
* @get_i2c_adapter: Get I2C adapter.
34+
* @enable_slave_ts: Enable slave TS IF.
35+
* @pid_filter: Set PID to PID filter.
36+
* @pid_filter_ctrl: Control PID filter.
37+
*/
38+
2839
struct rtl2832_platform_data {
29-
/*
30-
* Clock frequency.
31-
* Hz
32-
* 4000000, 16000000, 25000000, 28800000
33-
*/
3440
u32 clk;
35-
3641
/*
37-
* Tuner.
3842
* XXX: This list must be kept sync with dvb_usb_rtl28xxu USB IF driver.
3943
*/
4044
#define RTL2832_TUNER_TUA9001 0x24
@@ -45,15 +49,12 @@ struct rtl2832_platform_data {
4549
#define RTL2832_TUNER_R828D 0x2b
4650
u8 tuner;
4751

48-
/*
49-
* Callbacks.
50-
*/
5152
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
5253
struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
5354
int (*enable_slave_ts)(struct i2c_client *);
5455
int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
5556
int (*pid_filter_ctrl)(struct dvb_frontend *, int);
56-
/* Register access for SDR module */
57+
/* private: Register access for SDR module use only */
5758
int (*bulk_read)(struct i2c_client *, unsigned int, void *, size_t);
5859
int (*bulk_write)(struct i2c_client *, unsigned int, const void *, size_t);
5960
int (*update_bits)(struct i2c_client *, unsigned int, unsigned int, unsigned int);

0 commit comments

Comments
 (0)