1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3*/
4
5#ifndef __TUNER_SIMPLE_H__
6#define __TUNER_SIMPLE_H__
7
8#include <linux/i2c.h>
9#include <media/dvb_frontend.h>
10
11#if IS_REACHABLE(CONFIG_MEDIA_TUNER_SIMPLE)
12extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
13						struct i2c_adapter *i2c_adap,
14						u8 i2c_addr,
15						unsigned int type);
16#else
17static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
18						       struct i2c_adapter *i2c_adap,
19						       u8 i2c_addr,
20						       unsigned int type)
21{
22	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
23	return NULL;
24}
25#endif
26
27#endif /* __TUNER_SIMPLE_H__ */
28