18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Microtune MT2266 "Direct conversion low power broadband tuner" 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2007 Olivier DANET <odanet@caramail.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef MT2266_H 98c2ecf20Sopenharmony_ci#define MT2266_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct dvb_frontend; 128c2ecf20Sopenharmony_cistruct i2c_adapter; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistruct mt2266_config { 158c2ecf20Sopenharmony_ci u8 i2c_address; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2266) 198c2ecf20Sopenharmony_ciextern struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg); 208c2ecf20Sopenharmony_ci#else 218c2ecf20Sopenharmony_cistatic inline struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg) 228c2ecf20Sopenharmony_ci{ 238c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 248c2ecf20Sopenharmony_ci return NULL; 258c2ecf20Sopenharmony_ci} 268c2ecf20Sopenharmony_ci#endif // CONFIG_MEDIA_TUNER_MT2266 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif 29