xref: /linux/drivers/media/dvb-frontends/dvb_dummy_fe.h (revision 48dea9a700c8728cc31a1dd44588b97578de86ee)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Driver for Dummy Frontend
4  *
5  *  Written by Emard <emard@softhome.net>
6  */
7 
8 #ifndef DVB_DUMMY_FE_H
9 #define DVB_DUMMY_FE_H
10 
11 #include <linux/dvb/frontend.h>
12 #include <media/dvb_frontend.h>
13 
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)
20 {
21 	pr_warn("%s: driver disabled by Kconfig\n", __func__);
22 	return NULL;
23 }
24 static inline struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void)
25 {
26 	pr_warn("%s: driver disabled by Kconfig\n", __func__);
27 	return NULL;
28 }
29 static inline struct dvb_frontend *dvb_dummy_fe_qam_attach(void)
30 {
31 	pr_warn("%s: driver disabled by Kconfig\n", __func__);
32 	return NULL;
33 }
34 #endif /* CONFIG_DVB_DUMMY_FE */
35 
36 #endif // DVB_DUMMY_FE_H
37