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 extern struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void); 16 extern struct dvb_frontend* dvb_dummy_fe_qpsk_attach(void); 17 extern 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 printk(KERN_WARNING "%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 printk(KERN_WARNING "%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 printk(KERN_WARNING "%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