18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Sharp s921 driver 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2009 Mauro Carvalho Chehab 68c2ecf20Sopenharmony_ci * Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com> 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef S921_H 108c2ecf20Sopenharmony_ci#define S921_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <linux/dvb/frontend.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistruct s921_config { 158c2ecf20Sopenharmony_ci /* the demodulator's i2c address */ 168c2ecf20Sopenharmony_ci u8 demod_address; 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_S921) 208c2ecf20Sopenharmony_ciextern struct dvb_frontend *s921_attach(const struct s921_config *config, 218c2ecf20Sopenharmony_ci struct i2c_adapter *i2c); 228c2ecf20Sopenharmony_ciextern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *); 238c2ecf20Sopenharmony_ci#else 248c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *s921_attach( 258c2ecf20Sopenharmony_ci const struct s921_config *config, struct i2c_adapter *i2c) 268c2ecf20Sopenharmony_ci{ 278c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 288c2ecf20Sopenharmony_ci return NULL; 298c2ecf20Sopenharmony_ci} 308c2ecf20Sopenharmony_cistatic inline struct i2c_adapter * 318c2ecf20Sopenharmony_ci s921_get_tuner_i2c_adapter(struct dvb_frontend *fe) 328c2ecf20Sopenharmony_ci{ 338c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 348c2ecf20Sopenharmony_ci return NULL; 358c2ecf20Sopenharmony_ci} 368c2ecf20Sopenharmony_ci#endif 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#endif /* S921_H */ 39