18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _TDA18271C2DD_H_ 38c2ecf20Sopenharmony_ci#define _TDA18271C2DD_H_ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_TDA18271C2DD) 68c2ecf20Sopenharmony_cistruct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe, 78c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, u8 adr); 88c2ecf20Sopenharmony_ci#else 98c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *tda18271c2dd_attach(struct dvb_frontend *fe, 108c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, u8 adr) 118c2ecf20Sopenharmony_ci{ 128c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 138c2ecf20Sopenharmony_ci return NULL; 148c2ecf20Sopenharmony_ci} 158c2ecf20Sopenharmony_ci#endif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#endif 18