Merge branch 'work.regset' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / drivers / media / tuners / mt2266.h
blob8dc4d560718f06f7eafd0fbdead17e21beae429a
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Microtune MT2266 "Direct conversion low power broadband tuner"
5 * Copyright (c) 2007 Olivier DANET <odanet@caramail.com>
6 */
8 #ifndef MT2266_H
9 #define MT2266_H
11 struct dvb_frontend;
12 struct i2c_adapter;
14 struct mt2266_config {
15 u8 i2c_address;
18 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2266)
19 extern struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg);
20 #else
21 static inline struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg)
23 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
24 return NULL;
26 #endif // CONFIG_MEDIA_TUNER_MT2266
28 #endif