]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - drivers/media/tuners/mt2063.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / drivers / media / tuners / mt2063.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
0e301442
MCC
2#ifndef __MT2063_H__
3#define __MT2063_H__
4
0e301442
MCC
5#include "dvb_frontend.h"
6
0e301442
MCC
7struct mt2063_config {
8 u8 tuner_address;
9 u32 refclock;
223c7b05
MCC
10};
11
9b174527 12#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
b675668a
MCC
13struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
14 struct mt2063_config *config,
15 struct i2c_adapter *i2c);
223c7b05
MCC
16
17#else
18
0e301442 19static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
b675668a
MCC
20 struct mt2063_config *config,
21 struct i2c_adapter *i2c)
223c7b05
MCC
22{
23 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
24 return NULL;
25}
26
4dca4efc 27#endif /* CONFIG_DVB_MT2063 */
0e301442 28
4dca4efc 29#endif /* __MT2063_H__ */