aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/mn88472.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/mn88472.h')
-rw-r--r--drivers/media/dvb-frontends/mn88472.h45
1 files changed, 24 insertions, 21 deletions
diff --git a/drivers/media/dvb-frontends/mn88472.h b/drivers/media/dvb-frontends/mn88472.h
index 095294d292f3..323632523876 100644
--- a/drivers/media/dvb-frontends/mn88472.h
+++ b/drivers/media/dvb-frontends/mn88472.h
@@ -19,23 +19,33 @@
19 19
20#include <linux/dvb/frontend.h> 20#include <linux/dvb/frontend.h>
21 21
22enum ts_clock { 22/**
23 VARIABLE_TS_CLOCK, 23 * struct mn88472_config - Platform data for the mn88472 driver
24 FIXED_TS_CLOCK, 24 * @xtal: Clock frequency.
25}; 25 * @ts_mode: TS mode.
26 * @ts_clock: TS clock config.
27 * @i2c_wr_max: Max number of bytes driver writes to I2C at once.
28 * @get_dvb_frontend: Get DVB frontend.
29 */
26 30
27enum ts_mode { 31/* Define old names for backward compatibility */
28 SERIAL_TS_MODE, 32#define VARIABLE_TS_CLOCK MN88472_TS_CLK_VARIABLE
29 PARALLEL_TS_MODE, 33#define FIXED_TS_CLOCK MN88472_TS_CLK_FIXED
30}; 34#define SERIAL_TS_MODE MN88472_TS_MODE_SERIAL
35#define PARALLEL_TS_MODE MN88472_TS_MODE_PARALLEL
31 36
32struct mn88472_config { 37struct mn88472_config {
33 /* 38 unsigned int xtal;
34 * Max num of bytes given I2C adapter could write at once. 39
35 * Default: none 40#define MN88472_TS_MODE_SERIAL 0
36 */ 41#define MN88472_TS_MODE_PARALLEL 1
37 u16 i2c_wr_max; 42 int ts_mode;
38 43
44#define MN88472_TS_CLK_FIXED 0
45#define MN88472_TS_CLK_VARIABLE 1
46 int ts_clock;
47
48 u16 i2c_wr_max;
39 49
40 /* Everything after that is returned by the driver. */ 50 /* Everything after that is returned by the driver. */
41 51
@@ -43,14 +53,7 @@ struct mn88472_config {
43 * DVB frontend. 53 * DVB frontend.
44 */ 54 */
45 struct dvb_frontend **fe; 55 struct dvb_frontend **fe;
46 56 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
47 /*
48 * Xtal frequency.
49 * Hz
50 */
51 u32 xtal;
52 int ts_mode;
53 int ts_clock;
54}; 57};
55 58
56#endif 59#endif