Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / mb86a16.h
blobc0c5419280ab9ff09835d07daac44a413b4a190c
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Fujitsu MB86A16 DVB-S/DSS DC Receiver driver
5 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
7 */
9 #ifndef __MB86A16_H
10 #define __MB86A16_H
12 #include <linux/dvb/frontend.h>
13 #include <media/dvb_frontend.h>
16 struct mb86a16_config {
17 u8 demod_address;
19 int (*set_voltage)(struct dvb_frontend *fe,
20 enum fe_sec_voltage voltage);
25 #if IS_REACHABLE(CONFIG_DVB_MB86A16)
27 extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
28 struct i2c_adapter *i2c_adap);
30 #else
32 static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
33 struct i2c_adapter *i2c_adap)
35 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
36 return NULL;
39 #endif /* CONFIG_DVB_MB86A16 */
41 #endif /* __MB86A16_H */