blob: e1acfc8e7ae3f20b6fa01d66554d629af9da6c9d [file] [log] [blame]
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03001#ifndef __MT2063_H__
2#define __MT2063_H__
3
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03004#include "dvb_frontend.h"
5
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03006struct mt2063_config {
7 u8 tuner_address;
8 u32 refclock;
9};
10
Peter Senna Tschudin7b34be72013-01-20 01:32:56 -030011#if IS_ENABLED(CONFIG_MEDIA_TUNER_MT2063)
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030012struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
13 struct mt2063_config *config,
14 struct i2c_adapter *i2c);
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030015
16#else
17
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030018static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030019 struct mt2063_config *config,
20 struct i2c_adapter *i2c)
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030021{
22 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
23 return NULL;
24}
25
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030026#endif /* CONFIG_DVB_MT2063 */
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030027
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030028#endif /* __MT2063_H__ */