Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / tuners / qt1010.h
blob559c12b97dbb9a9d0ddcf42f7c21eb48c2fd05b3
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Quantek QT1010 silicon tuner
5 * Copyright (C) 2006 Antti Palosaari <crope@iki.fi>
6 * Aapo Tahkola <aet@rasterburn.org>
7 */
9 #ifndef QT1010_H
10 #define QT1010_H
12 #include <media/dvb_frontend.h>
14 struct qt1010_config {
15 u8 i2c_address;
18 /**
19 * Attach a qt1010 tuner to the supplied frontend structure.
21 * @param fe frontend to attach to
22 * @param i2c i2c adapter to use
23 * @param cfg tuner hw based configuration
24 * @return fe pointer on success, NULL on failure
26 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_QT1010)
27 extern struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
28 struct i2c_adapter *i2c,
29 struct qt1010_config *cfg);
30 #else
31 static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
32 struct i2c_adapter *i2c,
33 struct qt1010_config *cfg)
35 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
36 return NULL;
38 #endif // CONFIG_MEDIA_TUNER_QT1010
40 #endif