Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Driver for Spase SP8870 demodulator
0004 
0005     Copyright (C) 1999 Juergen Peitz
0006 
0007 
0008 */
0009 
0010 #ifndef SP8870_H
0011 #define SP8870_H
0012 
0013 #include <linux/dvb/frontend.h>
0014 #include <linux/firmware.h>
0015 
0016 struct sp8870_config
0017 {
0018     /* the demodulator's i2c address */
0019     u8 demod_address;
0020 
0021     /* request firmware for device */
0022     int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
0023 };
0024 
0025 #if IS_REACHABLE(CONFIG_DVB_SP8870)
0026 extern struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
0027                       struct i2c_adapter* i2c);
0028 #else
0029 static inline struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
0030                       struct i2c_adapter* i2c)
0031 {
0032     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0033     return NULL;
0034 }
0035 #endif // CONFIG_DVB_SP8870
0036 
0037 #endif // SP8870_H