aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-driver.h')
-rw-r--r--drivers/media/video/tuner-driver.h37
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
28extern unsigned const int tuner_count; 29extern unsigned const int tuner_count;
29 30
31struct tuner;
32
30struct tuner_operations { 33struct 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
41struct tuner { 44struct tuner {
@@ -66,20 +69,20 @@ struct tuner {
66 69
67/* ------------------------------------------------------------------------ */ 70/* ------------------------------------------------------------------------ */
68 71
69extern int default_tuner_init(struct i2c_client *c); 72extern int default_tuner_init(struct tuner *t);
70 73
71extern int tda9887_tuner_init(struct i2c_client *c); 74extern int tda9887_tuner_init(struct tuner *t);
72 75
73extern int microtune_init(struct i2c_client *c); 76extern int microtune_init(struct tuner *t);
74 77
75extern int tda8290_init(struct i2c_client *c); 78extern int tda8290_init(struct tuner *t);
76extern int tda8290_probe(struct i2c_client *c); 79extern int tda8290_probe(struct tuner *t);
77 80
78extern int tea5761_tuner_init(struct i2c_client *c); 81extern int tea5761_tuner_init(struct tuner *t);
79extern int tea5761_autodetection(struct i2c_client *c); 82extern int tea5761_autodetection(struct tuner *t);
80 83
81extern int tea5767_autodetection(struct i2c_client *c); 84extern int tea5767_autodetection(struct tuner *t);
82extern int tea5767_tuner_init(struct i2c_client *c); 85extern int tea5767_tuner_init(struct tuner *t);
83 86
84/* ------------------------------------------------------------------------ */ 87/* ------------------------------------------------------------------------ */
85 88