18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Microtune MT2131 "QAM/8VSB single chip tuner" 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __MT2131_H__ 98c2ecf20Sopenharmony_ci#define __MT2131_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct dvb_frontend; 128c2ecf20Sopenharmony_cistruct i2c_adapter; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistruct mt2131_config { 158c2ecf20Sopenharmony_ci u8 i2c_address; 168c2ecf20Sopenharmony_ci u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */ 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2131) 208c2ecf20Sopenharmony_ciextern struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe, 218c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, 228c2ecf20Sopenharmony_ci struct mt2131_config *cfg, 238c2ecf20Sopenharmony_ci u16 if1); 248c2ecf20Sopenharmony_ci#else 258c2ecf20Sopenharmony_cistatic inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe, 268c2ecf20Sopenharmony_ci struct i2c_adapter *i2c, 278c2ecf20Sopenharmony_ci struct mt2131_config *cfg, 288c2ecf20Sopenharmony_ci u16 if1) 298c2ecf20Sopenharmony_ci{ 308c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 318c2ecf20Sopenharmony_ci return NULL; 328c2ecf20Sopenharmony_ci} 338c2ecf20Sopenharmony_ci#endif /* CONFIG_MEDIA_TUNER_MT2131 */ 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#endif /* __MT2131_H__ */ 36