diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/mxl111sf.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/mxl111sf.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/media/dvb/dvb-usb/mxl111sf.h b/drivers/media/dvb/dvb-usb/mxl111sf.h index 364d89f826bd..9816de86e48c 100644 --- a/drivers/media/dvb/dvb-usb/mxl111sf.h +++ b/drivers/media/dvb/dvb-usb/mxl111sf.h | |||
@@ -15,7 +15,7 @@ | |||
15 | #undef DVB_USB_LOG_PREFIX | 15 | #undef DVB_USB_LOG_PREFIX |
16 | #endif | 16 | #endif |
17 | #define DVB_USB_LOG_PREFIX "mxl111sf" | 17 | #define DVB_USB_LOG_PREFIX "mxl111sf" |
18 | #include "dvb-usb.h" | 18 | #include "dvb_usb.h" |
19 | #include <media/tveeprom.h> | 19 | #include <media/tveeprom.h> |
20 | 20 | ||
21 | #define MXL_EP1_REG_READ 1 | 21 | #define MXL_EP1_REG_READ 1 |
@@ -39,6 +39,15 @@ enum mxl111sf_gpio_port_expander { | |||
39 | mxl111sf_PCA9534, | 39 | mxl111sf_PCA9534, |
40 | }; | 40 | }; |
41 | 41 | ||
42 | struct mxl111sf_adap_state { | ||
43 | int alt_mode; | ||
44 | int gpio_mode; | ||
45 | int device_mode; | ||
46 | int ep6_clockphase; | ||
47 | int (*fe_init)(struct dvb_frontend *); | ||
48 | int (*fe_sleep)(struct dvb_frontend *); | ||
49 | }; | ||
50 | |||
42 | struct mxl111sf_state { | 51 | struct mxl111sf_state { |
43 | struct dvb_usb_device *d; | 52 | struct dvb_usb_device *d; |
44 | 53 | ||
@@ -74,15 +83,8 @@ struct mxl111sf_state { | |||
74 | struct tveeprom tv; | 83 | struct tveeprom tv; |
75 | 84 | ||
76 | struct mutex fe_lock; | 85 | struct mutex fe_lock; |
77 | }; | 86 | u8 num_frontends; |
78 | 87 | struct mxl111sf_adap_state adap_state[3]; | |
79 | struct mxl111sf_adap_state { | ||
80 | int alt_mode; | ||
81 | int gpio_mode; | ||
82 | int device_mode; | ||
83 | int ep6_clockphase; | ||
84 | int (*fe_init)(struct dvb_frontend *); | ||
85 | int (*fe_sleep)(struct dvb_frontend *); | ||
86 | }; | 88 | }; |
87 | 89 | ||
88 | int mxl111sf_read_reg(struct mxl111sf_state *state, u8 addr, u8 *data); | 90 | int mxl111sf_read_reg(struct mxl111sf_state *state, u8 addr, u8 *data); |