1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Driver for the ST STV6111 tuner
4  *
5  * Copyright (C) 2014 Digital Devices GmbH
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * version 2 only, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  */
16 
17 #ifndef _STV6111_H_
18 #define _STV6111_H_
19 
20 #if IS_REACHABLE(CONFIG_DVB_STV6111)
21 
22 struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
23 				    struct i2c_adapter *i2c, u8 adr);
24 
25 #else
26 
27 static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
28 						  struct i2c_adapter *i2c,
29 						  u8 adr)
30 {
31 	pr_warn("%s: Driver disabled by Kconfig\n", __func__);
32 	return NULL;
33 }
34 
35 #endif /* CONFIG_DVB_STV6111 */
36 
37 #endif /* _STV6111_H_ */
38