blob: 30d03cd76061449ee814f04073020482a776925b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03002#ifndef __MT2063_H__
3#define __MT2063_H__
4
Mauro Carvalho Chehabfada1932017-12-28 13:03:51 -05005#include <media/dvb_frontend.h>
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03006
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -03007struct mt2063_config {
8 u8 tuner_address;
9 u32 refclock;
10};
11
Arnd Bergmann9b174522015-02-18 14:12:42 -030012#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030013struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
14 struct mt2063_config *config,
15 struct i2c_adapter *i2c);
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030016
17#else
18
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030019static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
Mauro Carvalho Chehabb6756682011-07-20 20:58:25 -030020 struct mt2063_config *config,
21 struct i2c_adapter *i2c)
Mauro Carvalho Chehab223c7b02011-07-20 19:48:59 -030022{
23 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
24 return NULL;
25}
26
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030027#endif /* CONFIG_DVB_MT2063 */
Mauro Carvalho Chehab0e301442011-07-20 19:52:49 -030028
Mauro Carvalho Chehab4dca4ef2011-07-20 20:15:01 -030029#endif /* __MT2063_H__ */