25
25
#include <linux/dvb/frontend.h>
26
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
+
28
39
struct rtl2832_platform_data {
29
- /*
30
- * Clock frequency.
31
- * Hz
32
- * 4000000, 16000000, 25000000, 28800000
33
- */
34
40
u32 clk ;
35
-
36
41
/*
37
- * Tuner.
38
42
* XXX: This list must be kept sync with dvb_usb_rtl28xxu USB IF driver.
39
43
*/
40
44
#define RTL2832_TUNER_TUA9001 0x24
@@ -45,15 +49,12 @@ struct rtl2832_platform_data {
45
49
#define RTL2832_TUNER_R828D 0x2b
46
50
u8 tuner ;
47
51
48
- /*
49
- * Callbacks.
50
- */
51
52
struct dvb_frontend * (* get_dvb_frontend )(struct i2c_client * );
52
53
struct i2c_adapter * (* get_i2c_adapter )(struct i2c_client * );
53
54
int (* enable_slave_ts )(struct i2c_client * );
54
55
int (* pid_filter )(struct dvb_frontend * , u8 , u16 , int );
55
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
58
int (* bulk_read )(struct i2c_client * , unsigned int , void * , size_t );
58
59
int (* bulk_write )(struct i2c_client * , unsigned int , const void * , size_t );
59
60
int (* update_bits )(struct i2c_client * , unsigned int , unsigned int , unsigned int );
0 commit comments