18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Freescale MC44S803 Low Power CMOS Broadband Tuner 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2009 Jochen Friedrich <jochen@scram.de> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef MC44S803_H 98c2ecf20Sopenharmony_ci#define MC44S803_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct dvb_frontend; 128c2ecf20Sopenharmony_cistruct i2c_adapter; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistruct mc44s803_config { 158c2ecf20Sopenharmony_ci u8 i2c_address; 168c2ecf20Sopenharmony_ci u8 dig_out; 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MC44S803) 208c2ecf20Sopenharmony_ciextern struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe, 218c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, struct mc44s803_config *cfg); 228c2ecf20Sopenharmony_ci#else 238c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe, 248c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, struct mc44s803_config *cfg) 258c2ecf20Sopenharmony_ci{ 268c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 278c2ecf20Sopenharmony_ci return NULL; 288c2ecf20Sopenharmony_ci} 298c2ecf20Sopenharmony_ci#endif /* CONFIG_MEDIA_TUNER_MC44S803 */ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif 32