brintos

brintos / linux-shallow public Read only

0
0
Text · 1020 B · 8db8743 Raw
41 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 *  Driver for Quantek QT1010 silicon tuner4 *5 *  Copyright (C) 2006 Antti Palosaari <crope@iki.fi>6 *                     Aapo Tahkola <aet@rasterburn.org>7 */8 9#ifndef QT1010_H10#define QT1010_H11 12#include <media/dvb_frontend.h>13 14struct qt1010_config {15	u8 i2c_address;16};17 18/**19 * qt1010_attach() - Attach a qt1010 tuner to the supplied frontend structure20 *21 * @fe:   frontend to attach to22 * @i2c:  i2c adapter to use23 * @cfg:  tuner hw based configuration24 * @return fe  pointer on success, NULL on failure25 */26#if IS_REACHABLE(CONFIG_MEDIA_TUNER_QT1010)27extern struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,28					  struct i2c_adapter *i2c,29					  struct qt1010_config *cfg);30#else31static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,32						 struct i2c_adapter *i2c,33						 struct qt1010_config *cfg)34{35	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);36	return NULL;37}38#endif // CONFIG_MEDIA_TUNER_QT101039 40#endif41