Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / sp8870.h
blob5eacf39f425e9f570e6d3700231e816a3315ec47
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Driver for Spase SP8870 demodulator
5 Copyright (C) 1999 Juergen Peitz
8 */
10 #ifndef SP8870_H
11 #define SP8870_H
13 #include <linux/dvb/frontend.h>
14 #include <linux/firmware.h>
16 struct sp8870_config
18 /* the demodulator's i2c address */
19 u8 demod_address;
21 /* request firmware for device */
22 int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
25 #if IS_REACHABLE(CONFIG_DVB_SP8870)
26 extern struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
27 struct i2c_adapter* i2c);
28 #else
29 static inline struct dvb_frontend* sp8870_attach(const struct sp8870_config* config,
30 struct i2c_adapter* i2c)
32 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
33 return NULL;
35 #endif // CONFIG_DVB_SP8870
37 #endif // SP8870_H