18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * E3C EC100 demodulator driver 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef EC100_H 98c2ecf20Sopenharmony_ci#define EC100_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/dvb/frontend.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cistruct ec100_config { 148c2ecf20Sopenharmony_ci /* demodulator's I2C address */ 158c2ecf20Sopenharmony_ci u8 demod_address; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_EC100) 208c2ecf20Sopenharmony_ciextern struct dvb_frontend *ec100_attach(const struct ec100_config *config, 218c2ecf20Sopenharmony_ci struct i2c_adapter *i2c); 228c2ecf20Sopenharmony_ci#else 238c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *ec100_attach( 248c2ecf20Sopenharmony_ci const struct ec100_config *config, struct i2c_adapter *i2c) 258c2ecf20Sopenharmony_ci{ 268c2ecf20Sopenharmony_ci pr_warn("%s: driver disabled by Kconfig\n", __func__); 278c2ecf20Sopenharmony_ci return NULL; 288c2ecf20Sopenharmony_ci} 298c2ecf20Sopenharmony_ci#endif 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif /* EC100_H */ 32