diff options
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x.h')
| -rw-r--r-- | drivers/media/radio/si470x/radio-si470x.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x.h b/drivers/media/radio/si470x/radio-si470x.h index d0af194d194c..3cd0a29cd6e7 100644 --- a/drivers/media/radio/si470x/radio-si470x.h +++ b/drivers/media/radio/si470x/radio-si470x.h | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
| 30 | #include <linux/module.h> | 30 | #include <linux/module.h> |
| 31 | #include <linux/init.h> | 31 | #include <linux/init.h> |
| 32 | #include <linux/sched.h> | ||
| 32 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
| 33 | #include <linux/smp_lock.h> | 34 | #include <linux/smp_lock.h> |
| 34 | #include <linux/input.h> | 35 | #include <linux/input.h> |
| @@ -181,6 +182,7 @@ struct si470x_device { | |||
| 181 | 182 | ||
| 182 | #if defined(CONFIG_I2C_SI470X) || defined(CONFIG_I2C_SI470X_MODULE) | 183 | #if defined(CONFIG_I2C_SI470X) || defined(CONFIG_I2C_SI470X_MODULE) |
| 183 | struct i2c_client *client; | 184 | struct i2c_client *client; |
| 185 | struct work_struct radio_work; | ||
| 184 | #endif | 186 | #endif |
| 185 | }; | 187 | }; |
| 186 | 188 | ||
| @@ -212,7 +214,6 @@ struct si470x_device { | |||
| 212 | /************************************************************************** | 214 | /************************************************************************** |
| 213 | * Common Functions | 215 | * Common Functions |
| 214 | **************************************************************************/ | 216 | **************************************************************************/ |
| 215 | extern const struct v4l2_file_operations si470x_fops; | ||
| 216 | extern struct video_device si470x_viddev_template; | 217 | extern struct video_device si470x_viddev_template; |
| 217 | int si470x_get_register(struct si470x_device *radio, int regnr); | 218 | int si470x_get_register(struct si470x_device *radio, int regnr); |
| 218 | int si470x_set_register(struct si470x_device *radio, int regnr); | 219 | int si470x_set_register(struct si470x_device *radio, int regnr); |
| @@ -221,5 +222,7 @@ int si470x_set_freq(struct si470x_device *radio, unsigned int freq); | |||
| 221 | int si470x_start(struct si470x_device *radio); | 222 | int si470x_start(struct si470x_device *radio); |
| 222 | int si470x_stop(struct si470x_device *radio); | 223 | int si470x_stop(struct si470x_device *radio); |
| 223 | int si470x_rds_on(struct si470x_device *radio); | 224 | int si470x_rds_on(struct si470x_device *radio); |
| 225 | int si470x_fops_open(struct file *file); | ||
| 226 | int si470x_fops_release(struct file *file); | ||
| 224 | int si470x_vidioc_querycap(struct file *file, void *priv, | 227 | int si470x_vidioc_querycap(struct file *file, void *priv, |
| 225 | struct v4l2_capability *capability); | 228 | struct v4l2_capability *capability); |
