blob: 0e3e3b0525bb12ae19a7638537ba11855236b64a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __MT2063_H__
3#define __MT2063_H__
4
5#include "dvb_frontend.h"
6
7struct mt2063_config {
8 u8 tuner_address;
9 u32 refclock;
10};
11
12#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
13struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
14 struct mt2063_config *config,
15 struct i2c_adapter *i2c);
16
17#else
18
19static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
20 struct mt2063_config *config,
21 struct i2c_adapter *i2c)
22{
23 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
24 return NULL;
25}
26
27#endif /* CONFIG_DVB_MT2063 */
28
29#endif /* __MT2063_H__ */