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) 156a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void); 166a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void); 176a168c6cSDaniel W. S. Almeida struct dvb_frontend *dvb_dummy_fe_qam_attach(void); 189a0bf528SMauro Carvalho Chehab #else dvb_dummy_fe_ofdm_attach(void)199a0bf528SMauro Carvalho Chehabstatic inline struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void) 209a0bf528SMauro Carvalho Chehab { 21*02a5830fSDaniel W. S. Almeida pr_warn("%s: driver disabled by Kconfig\n", __func__); 229a0bf528SMauro Carvalho Chehab return NULL; 239a0bf528SMauro Carvalho Chehab } dvb_dummy_fe_qpsk_attach(void)249a0bf528SMauro Carvalho Chehabstatic inline struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void) 259a0bf528SMauro Carvalho Chehab { 26*02a5830fSDaniel W. S. Almeida pr_warn("%s: driver disabled by Kconfig\n", __func__); 279a0bf528SMauro Carvalho Chehab return NULL; 289a0bf528SMauro Carvalho Chehab } dvb_dummy_fe_qam_attach(void)299a0bf528SMauro Carvalho Chehabstatic inline struct dvb_frontend *dvb_dummy_fe_qam_attach(void) 309a0bf528SMauro Carvalho Chehab { 31*02a5830fSDaniel W. S. Almeida pr_warn("%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