diff options
Diffstat (limited to 'drivers/media/video/tuner-driver.h')
-rw-r--r-- | drivers/media/video/tuner-driver.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h index 145045561a51..3cd1d446f2f3 100644 --- a/drivers/media/video/tuner-driver.h +++ b/drivers/media/video/tuner-driver.h | |||
@@ -24,18 +24,21 @@ | |||
24 | 24 | ||
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include "tuner-i2c.h" | ||
27 | 28 | ||
28 | extern unsigned const int tuner_count; | 29 | extern unsigned const int tuner_count; |
29 | 30 | ||
31 | struct tuner; | ||
32 | |||
30 | struct tuner_operations { | 33 | struct tuner_operations { |
31 | void (*set_tv_freq)(struct i2c_client *c, unsigned int freq); | 34 | void (*set_tv_freq)(struct tuner *t, unsigned int freq); |
32 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); | 35 | void (*set_radio_freq)(struct tuner *t, unsigned int freq); |
33 | int (*has_signal)(struct i2c_client *c); | 36 | int (*has_signal)(struct tuner *t); |
34 | int (*is_stereo)(struct i2c_client *c); | 37 | int (*is_stereo)(struct tuner *t); |
35 | int (*get_afc)(struct i2c_client *c); | 38 | int (*get_afc)(struct tuner *t); |
36 | void (*tuner_status)(struct i2c_client *c); | 39 | void (*tuner_status)(struct tuner *t); |
37 | void (*standby)(struct i2c_client *c); | 40 | void (*standby)(struct tuner *t); |
38 | void (*release)(struct i2c_client *c); | 41 | void (*release)(struct tuner *t); |
39 | }; | 42 | }; |
40 | 43 | ||
41 | struct tuner { | 44 | struct tuner { |
@@ -66,20 +69,20 @@ struct tuner { | |||
66 | 69 | ||
67 | /* ------------------------------------------------------------------------ */ | 70 | /* ------------------------------------------------------------------------ */ |
68 | 71 | ||
69 | extern int default_tuner_init(struct i2c_client *c); | 72 | extern int default_tuner_init(struct tuner *t); |
70 | 73 | ||
71 | extern int tda9887_tuner_init(struct i2c_client *c); | 74 | extern int tda9887_tuner_init(struct tuner *t); |
72 | 75 | ||
73 | extern int microtune_init(struct i2c_client *c); | 76 | extern int microtune_init(struct tuner *t); |
74 | 77 | ||
75 | extern int tda8290_init(struct i2c_client *c); | 78 | extern int tda8290_init(struct tuner *t); |
76 | extern int tda8290_probe(struct i2c_client *c); | 79 | extern int tda8290_probe(struct tuner *t); |
77 | 80 | ||
78 | extern int tea5761_tuner_init(struct i2c_client *c); | 81 | extern int tea5761_tuner_init(struct tuner *t); |
79 | extern int tea5761_autodetection(struct i2c_client *c); | 82 | extern int tea5761_autodetection(struct tuner *t); |
80 | 83 | ||
81 | extern int tea5767_autodetection(struct i2c_client *c); | 84 | extern int tea5767_autodetection(struct tuner *t); |
82 | extern int tea5767_tuner_init(struct i2c_client *c); | 85 | extern int tea5767_tuner_init(struct tuner *t); |
83 | 86 | ||
84 | /* ------------------------------------------------------------------------ */ | 87 | /* ------------------------------------------------------------------------ */ |
85 | 88 | ||