aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-driver.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-09 00:26:48 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:28 -0500
commitab1660503ac3af7febfcf987648509b484d4feda (patch)
tree9ca5fbfadf1c4c7a6c227b5deb549d198217720a /drivers/media/video/tuner-driver.h
parentfa746aee336fedfe25e6945e5967399966948420 (diff)
V4L/DVB (6785): tda8290: remove dependency on struct tuner
- remove dependency of tda8290 module on struct tuner - move tuner_foo printk macros from tuner-driver.h into tuner-core.c - clean up #includes of tuner-i2c.h / tuner-driver.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-driver.h')
-rw-r--r--drivers/media/video/tuner-driver.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h
index 91913ee08a07..a215161d0241 100644
--- a/drivers/media/video/tuner-driver.h
+++ b/drivers/media/video/tuner-driver.h
@@ -24,13 +24,10 @@
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"
28#include "dvb_frontend.h" 27#include "dvb_frontend.h"
29 28
30extern unsigned const int tuner_count; 29extern unsigned const int tuner_count;
31 30
32struct tuner;
33
34struct analog_tuner_ops { 31struct analog_tuner_ops {
35 void (*set_params)(struct dvb_frontend *fe, 32 void (*set_params)(struct dvb_frontend *fe,
36 struct analog_parameters *params); 33 struct analog_parameters *params);
@@ -69,28 +66,4 @@ struct tuner {
69 int (*tuner_callback) (void *dev, int command,int arg); 66 int (*tuner_callback) (void *dev, int command,int arg);
70}; 67};
71 68
72/* ------------------------------------------------------------------------ */
73
74#define tuner_warn(fmt, arg...) do { \
75 printk(KERN_WARNING "%s %d-%04x: " fmt, PREFIX, \
76 i2c_adapter_id(t->i2c->adapter), t->i2c->addr, ##arg); \
77 } while (0)
78
79#define tuner_info(fmt, arg...) do { \
80 printk(KERN_INFO "%s %d-%04x: " fmt, PREFIX, \
81 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
82 } while (0)
83
84#define tuner_err(fmt, arg...) do { \
85 printk(KERN_ERR "%s %d-%04x: " fmt, PREFIX, \
86 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
87 } while (0)
88
89#define tuner_dbg(fmt, arg...) do { \
90 extern int tuner_debug; \
91 if (tuner_debug) \
92 printk(KERN_DEBUG "%s %d-%04x: " fmt, PREFIX, \
93 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); \
94 } while (0)
95
96#endif /* __TUNER_DRIVER_H__ */ 69#endif /* __TUNER_DRIVER_H__ */