brintos

brintos / linux-shallow public Read only

0
0
Text · 598 B · 6a8b9b8 Raw
26 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3*/4 5#ifndef __MT20XX_H__6#define __MT20XX_H__7 8#include <linux/i2c.h>9#include <media/dvb_frontend.h>10 11#if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT20XX)12extern struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,13					     struct i2c_adapter* i2c_adap,14					     u8 i2c_addr);15#else16static inline struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,17					     struct i2c_adapter* i2c_adap,18					     u8 i2c_addr)19{20	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);21	return NULL;22}23#endif24 25#endif /* __MT20XX_H__ */26