Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  Driver for Quantek QT1010 silicon tuner
0004  *
0005  *  Copyright (C) 2006 Antti Palosaari <crope@iki.fi>
0006  *                     Aapo Tahkola <aet@rasterburn.org>
0007  */
0008 
0009 #ifndef QT1010_H
0010 #define QT1010_H
0011 
0012 #include <media/dvb_frontend.h>
0013 
0014 struct qt1010_config {
0015     u8 i2c_address;
0016 };
0017 
0018 /**
0019  * qt1010_attach() - Attach a qt1010 tuner to the supplied frontend structure
0020  *
0021  * @fe:   frontend to attach to
0022  * @i2c:  i2c adapter to use
0023  * @cfg:  tuner hw based configuration
0024  * @return fe  pointer on success, NULL on failure
0025  */
0026 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_QT1010)
0027 extern struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
0028                       struct i2c_adapter *i2c,
0029                       struct qt1010_config *cfg);
0030 #else
0031 static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,
0032                          struct i2c_adapter *i2c,
0033                          struct qt1010_config *cfg)
0034 {
0035     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0036     return NULL;
0037 }
0038 #endif // CONFIG_MEDIA_TUNER_QT1010
0039 
0040 #endif