Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc13d929 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (4733): Tda10086: fix frontend selection for dvb_attach

parent 934765b8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -35,7 +35,16 @@ struct tda10086_config
	u8 invert;
};

#if defined(CONFIG_DVB_TDA10086) || defined(CONFIG_DVB_TDA10086_MODULE)
extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
					    struct i2c_adapter* i2c);
#else
static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config,
						   struct i2c_adapter* i2c)
{
	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
	return NULL;
}
#endif // CONFIG_DVB_TDA10086

#endif // TDA10086_H