xref: /openbmc/linux/drivers/media/dvb-frontends/dvb_dummy_fe.h (revision 6a168c6cb6883d13f738b7e1558042ed654268dc)
1c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
29a0bf528SMauro Carvalho Chehab /*
39a0bf528SMauro Carvalho Chehab  *  Driver for Dummy Frontend
49a0bf528SMauro Carvalho Chehab  *
59a0bf528SMauro Carvalho Chehab  *  Written by Emard <emard@softhome.net>
69a0bf528SMauro Carvalho Chehab  */
79a0bf528SMauro Carvalho Chehab 
89a0bf528SMauro Carvalho Chehab #ifndef DVB_DUMMY_FE_H
99a0bf528SMauro Carvalho Chehab #define DVB_DUMMY_FE_H
109a0bf528SMauro Carvalho Chehab 
119a0bf528SMauro Carvalho Chehab #include <linux/dvb/frontend.h>
12fada1935SMauro Carvalho Chehab #include <media/dvb_frontend.h>
139a0bf528SMauro Carvalho Chehab 
149b174527SArnd Bergmann #if IS_REACHABLE(CONFIG_DVB_DUMMY_FE)
15*6a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void);
16*6a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void);
17*6a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_qam_attach(void);
189a0bf528SMauro Carvalho Chehab #else
199a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void)
209a0bf528SMauro Carvalho Chehab {
219a0bf528SMauro Carvalho Chehab 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
229a0bf528SMauro Carvalho Chehab 	return NULL;
239a0bf528SMauro Carvalho Chehab }
249a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void)
259a0bf528SMauro Carvalho Chehab {
269a0bf528SMauro Carvalho Chehab 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
279a0bf528SMauro Carvalho Chehab 	return NULL;
289a0bf528SMauro Carvalho Chehab }
299a0bf528SMauro Carvalho Chehab static inline struct dvb_frontend *dvb_dummy_fe_qam_attach(void)
309a0bf528SMauro Carvalho Chehab {
319a0bf528SMauro Carvalho Chehab 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
329a0bf528SMauro Carvalho Chehab 	return NULL;
339a0bf528SMauro Carvalho Chehab }
349a0bf528SMauro Carvalho Chehab #endif /* CONFIG_DVB_DUMMY_FE */
359a0bf528SMauro Carvalho Chehab 
369a0bf528SMauro Carvalho Chehab #endif // DVB_DUMMY_FE_H
37