aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda9887.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-16 18:11:46 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:55 -0500
commit8ca4083b50752d588f8b8b1e5e5776fb17d00304 (patch)
tree3a52ef63a3d60b2cddf0d88823fe4da640724abe /drivers/media/video/tda9887.h
parent91c9d4a16710b047781248a38e7000ce9de324af (diff)
V4L/DVB (6842): tda9887: remove dependency on struct tuner
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda9887.h')
-rw-r--r--drivers/media/video/tda9887.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/media/video/tda9887.h b/drivers/media/video/tda9887.h
index b879f0ec2855..8f873a8e6ed2 100644
--- a/drivers/media/video/tda9887.h
+++ b/drivers/media/video/tda9887.h
@@ -17,16 +17,21 @@
17#ifndef __TDA9887_H__ 17#ifndef __TDA9887_H__
18#define __TDA9887_H__ 18#define __TDA9887_H__
19 19
20#include "tuner-driver.h" 20#include <linux/i2c.h>
21#include "dvb_frontend.h"
21 22
22/* ------------------------------------------------------------------------ */ 23/* ------------------------------------------------------------------------ */
23#if defined(CONFIG_TUNER_TDA9887) || (defined(CONFIG_TUNER_TDA9887_MODULE) && defined(MODULE)) 24#if defined(CONFIG_TUNER_TDA9887) || (defined(CONFIG_TUNER_TDA9887_MODULE) && defined(MODULE))
24extern int tda9887_attach(struct tuner *t); 25extern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
26 struct i2c_adapter *i2c_adap,
27 u8 i2c_addr);
25#else 28#else
26static inline int tda9887_attach(struct tuner *t) 29static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
30 struct i2c_adapter *i2c_adap,
31 u8 i2c_addr)
27{ 32{
28 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); 33 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
29 return -EINVAL; 34 return NULL;
30} 35}
31#endif 36#endif
32 37