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