Skip to content

Commit

Permalink
V4L/DVB (4610): Add tua6100 config wrapper
Browse files Browse the repository at this point in the history
I had forgotten to add the wrapper round the tua6100_attach function if its
disabled in Kconfig

Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Andrew de Quincey authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 141276b commit 92cd24f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/media/dvb/frontends/tua6100.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
#include <linux/i2c.h>
#include "dvb_frontend.h"

/**
* Attach a tua6100 pll to the supplied frontend structure.
*
* @param fe Frontend to attach to.
* @param addr i2c address of the pll.
* @param i2c i2c adapter to use.
* @return FE pointer on success, NULL on failure.
*/
#if defined(CONFIG_DVB_TUA6100) || defined(CONFIG_DVB_TUA6100_MODULE)
extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
return NULL;
}
#endif // CONFIG_DVB_TUA6100

#endif

0 comments on commit 92cd24f

Please sign in to comment.