blob: 0e3e3b0525bb12ae19a7638537ba11855236b64a [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 Chehab0e301442011-07-20 19:52:49 -03005#include "dvb_frontend.h"
6
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__ */