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)
15struct dvb_frontend *dvb_dummy_fe_ofdm_attach(void);
16struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void);
17struct dvb_frontend *dvb_dummy_fe_qam_attach(void);
18#else
19static 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}
24static 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}
29static 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