aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-02-02 12:20:01 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-03 13:30:47 -0500
commit2f74b7c2f818c7b0c86e1073c2dd49a95078844f (patch)
tree447eb1f430a47d4ace53a26261e3f751cf7b7d9c
parent61c309ffcdc09c5fc7a13371fcf178a334eb36b7 (diff)
[media] rtl2832: add kernel-doc comments for platform_data
Add kernel-doc comments for platform_data configuration structure. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/dvb-frontends/rtl2832.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832.h b/drivers/media/dvb-frontends/rtl2832.h
index e5f67cf0a65b..a8e912e679a5 100644
--- a/drivers/media/dvb-frontends/rtl2832.h
+++ b/drivers/media/dvb-frontends/rtl2832.h
@@ -25,16 +25,20 @@
25#include <linux/dvb/frontend.h> 25#include <linux/dvb/frontend.h>
26#include <linux/i2c-mux.h> 26#include <linux/i2c-mux.h>
27 27
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
28struct rtl2832_platform_data { 39struct rtl2832_platform_data {
29 /*
30 * Clock frequency.
31 * Hz
32 * 4000000, 16000000, 25000000, 28800000
33 */
34 u32 clk; 40 u32 clk;
35
36 /* 41 /*
37 * Tuner.
38 * XXX: This list must be kept sync with dvb_usb_rtl28xxu USB IF driver. 42 * XXX: This list must be kept sync with dvb_usb_rtl28xxu USB IF driver.
39 */ 43 */
40#define RTL2832_TUNER_TUA9001 0x24 44#define RTL2832_TUNER_TUA9001 0x24
@@ -45,15 +49,12 @@ struct rtl2832_platform_data {
45#define RTL2832_TUNER_R828D 0x2b 49#define RTL2832_TUNER_R828D 0x2b
46 u8 tuner; 50 u8 tuner;
47 51
48 /*
49 * Callbacks.
50 */
51 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *); 52 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
52 struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *); 53 struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
53 int (*enable_slave_ts)(struct i2c_client *); 54 int (*enable_slave_ts)(struct i2c_client *);
54 int (*pid_filter)(struct dvb_frontend *, u8, u16, int); 55 int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
55 int (*pid_filter_ctrl)(struct dvb_frontend *, int); 56 int (*pid_filter_ctrl)(struct dvb_frontend *, int);
56 /* Register access for SDR module */ 57/* private: Register access for SDR module use only */
57 int (*bulk_read)(struct i2c_client *, unsigned int, void *, size_t); 58 int (*bulk_read)(struct i2c_client *, unsigned int, void *, size_t);
58 int (*bulk_write)(struct i2c_client *, unsigned int, const void *, size_t); 59 int (*bulk_write)(struct i2c_client *, unsigned int, const void *, size_t);
59 int (*update_bits)(struct i2c_client *, unsigned int, unsigned int, unsigned int); 60 int (*update_bits)(struct i2c_client *, unsigned int, unsigned int, unsigned int);