Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / dvb_dummy_fe.h
blob463abf5ebd56fc3921832971062ecc6005377183
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Dummy Frontend
5 * Written by Emard <emard@softhome.net>
6 */
8 #ifndef DVB_DUMMY_FE_H
9 #define DVB_DUMMY_FE_H
11 #include <linux/dvb/frontend.h>
12 #include <media/dvb_frontend.h>
14 #if IS_REACHABLE(CONFIG_DVB_DUMMY_FE)
15 struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void);
16 struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void);
17 struct dvb_frontend *dvb_dummy_fe_qam_attach(void);
18 #else
19 static inline struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void)
21 pr_warn("%s: driver disabled by Kconfig\n", __func__);
22 return NULL;
24 static inline struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void)
26 pr_warn("%s: driver disabled by Kconfig\n", __func__);
27 return NULL;
29 static inline struct dvb_frontend *dvb_dummy_fe_qam_attach(void)
31 pr_warn("%s: driver disabled by Kconfig\n", __func__);
32 return NULL;
34 #endif /* CONFIG_DVB_DUMMY_FE */
36 #endif // DVB_DUMMY_FE_H