Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * E3C EC100 demodulator driver
0004  *
0005  * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
0006  */
0007 
0008 #ifndef EC100_H
0009 #define EC100_H
0010 
0011 #include <linux/dvb/frontend.h>
0012 
0013 struct ec100_config {
0014     /* demodulator's I2C address */
0015     u8 demod_address;
0016 };
0017 
0018 
0019 #if IS_REACHABLE(CONFIG_DVB_EC100)
0020 extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
0021     struct i2c_adapter *i2c);
0022 #else
0023 static inline struct dvb_frontend *ec100_attach(
0024     const struct ec100_config *config, struct i2c_adapter *i2c)
0025 {
0026     pr_warn("%s: driver disabled by Kconfig\n", __func__);
0027     return NULL;
0028 }
0029 #endif
0030 
0031 #endif /* EC100_H */