summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-06-07 09:30:59 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-06-07 09:30:59 -0300
commit8f4a89da9e9a760bc538ddec6687826007a1d04c (patch)
tree1eb144567bc6064f9f16bb72d13bb1270bb29141 /linux/include
parent9aabc7e2945432ffb81a92e556b406bc93c3ef9a (diff)
parent0d79963da3174ac0a23ef4f8ae28f8b0ad30e636 (diff)
downloadmediapointer-dvb-s2-8f4a89da9e9a760bc538ddec6687826007a1d04c.tar.gz
mediapointer-dvb-s2-8f4a89da9e9a760bc538ddec6687826007a1d04c.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/tuner.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/linux/include/media/tuner.h b/linux/include/media/tuner.h
index 1f61f4681..e1821aa21 100644
--- a/linux/include/media/tuner.h
+++ b/linux/include/media/tuner.h
@@ -183,6 +183,17 @@ struct tuner_setup {
int (*tuner_callback) (void *dev, int command,int arg);
};
+struct tuner_operations {
+ void (*set_tv_freq)(struct i2c_client *c, unsigned int freq);
+ void (*set_radio_freq)(struct i2c_client *c, unsigned int freq);
+ int (*has_signal)(struct i2c_client *c);
+ int (*is_stereo)(struct i2c_client *c);
+ int (*get_afc)(struct i2c_client *c);
+ void (*tuner_status)(struct i2c_client *c);
+ void (*standby)(struct i2c_client *c);
+ void (*release)(struct i2c_client *c);
+};
+
struct tuner {
/* device */
struct i2c_client i2c;
@@ -207,15 +218,7 @@ struct tuner {
unsigned int config;
int (*tuner_callback) (void *dev, int command,int arg);
- /* function ptrs */
- void (*set_tv_freq)(struct i2c_client *c, unsigned int freq);
- void (*set_radio_freq)(struct i2c_client *c, unsigned int freq);
- int (*has_signal)(struct i2c_client *c);
- int (*is_stereo)(struct i2c_client *c);
- int (*get_afc)(struct i2c_client *c);
- void (*tuner_status)(struct i2c_client *c);
- void (*standby)(struct i2c_client *c);
- void (*release)(struct i2c_client *c);
+ struct tuner_operations ops;
};
extern unsigned const int tuner_count;