diff options
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x.h')
-rw-r--r-- | drivers/media/radio/si470x/radio-si470x.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x.h b/drivers/media/radio/si470x/radio-si470x.h index f300a55ed85c..4921cab8e0fa 100644 --- a/drivers/media/radio/si470x/radio-si470x.h +++ b/drivers/media/radio/si470x/radio-si470x.h | |||
@@ -36,6 +36,9 @@ | |||
36 | #include <linux/mutex.h> | 36 | #include <linux/mutex.h> |
37 | #include <media/v4l2-common.h> | 37 | #include <media/v4l2-common.h> |
38 | #include <media/v4l2-ioctl.h> | 38 | #include <media/v4l2-ioctl.h> |
39 | #include <media/v4l2-ctrls.h> | ||
40 | #include <media/v4l2-event.h> | ||
41 | #include <media/v4l2-device.h> | ||
39 | #include <asm/unaligned.h> | 42 | #include <asm/unaligned.h> |
40 | 43 | ||
41 | 44 | ||
@@ -141,10 +144,9 @@ | |||
141 | * si470x_device - private data | 144 | * si470x_device - private data |
142 | */ | 145 | */ |
143 | struct si470x_device { | 146 | struct si470x_device { |
144 | struct video_device *videodev; | 147 | struct v4l2_device v4l2_dev; |
145 | 148 | struct video_device videodev; | |
146 | /* driver management */ | 149 | struct v4l2_ctrl_handler hdl; |
147 | unsigned int users; | ||
148 | 150 | ||
149 | /* Silabs internal registers (0..15) */ | 151 | /* Silabs internal registers (0..15) */ |
150 | unsigned short registers[RADIO_REGISTER_NUM]; | 152 | unsigned short registers[RADIO_REGISTER_NUM]; |
@@ -174,9 +176,6 @@ struct si470x_device { | |||
174 | /* scratch page */ | 176 | /* scratch page */ |
175 | unsigned char software_version; | 177 | unsigned char software_version; |
176 | unsigned char hardware_version; | 178 | unsigned char hardware_version; |
177 | |||
178 | /* driver management */ | ||
179 | unsigned char disconnected; | ||
180 | #endif | 179 | #endif |
181 | 180 | ||
182 | #if defined(CONFIG_I2C_SI470X) || defined(CONFIG_I2C_SI470X_MODULE) | 181 | #if defined(CONFIG_I2C_SI470X) || defined(CONFIG_I2C_SI470X_MODULE) |
@@ -213,6 +212,7 @@ struct si470x_device { | |||
213 | * Common Functions | 212 | * Common Functions |
214 | **************************************************************************/ | 213 | **************************************************************************/ |
215 | extern struct video_device si470x_viddev_template; | 214 | extern struct video_device si470x_viddev_template; |
215 | extern const struct v4l2_ctrl_ops si470x_ctrl_ops; | ||
216 | int si470x_get_register(struct si470x_device *radio, int regnr); | 216 | int si470x_get_register(struct si470x_device *radio, int regnr); |
217 | int si470x_set_register(struct si470x_device *radio, int regnr); | 217 | int si470x_set_register(struct si470x_device *radio, int regnr); |
218 | int si470x_disconnect_check(struct si470x_device *radio); | 218 | int si470x_disconnect_check(struct si470x_device *radio); |