Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Fitipower FC0012 tuner driver - include
0004  *
0005  * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
0006  */
0007 
0008 #ifndef _FC0012_H_
0009 #define _FC0012_H_
0010 
0011 #include <media/dvb_frontend.h>
0012 #include "fc001x-common.h"
0013 
0014 struct fc0012_config {
0015     /*
0016      * I2C address
0017      */
0018     u8 i2c_address;
0019 
0020     /*
0021      * clock
0022      */
0023     enum fc001x_xtal_freq xtal_freq;
0024 
0025     bool dual_master;
0026 
0027     /*
0028      * RF loop-through
0029      */
0030     bool loop_through;
0031 
0032     /*
0033      * clock output
0034      */
0035     bool clock_out;
0036 };
0037 
0038 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_FC0012)
0039 extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
0040                     struct i2c_adapter *i2c,
0041                     const struct fc0012_config *cfg);
0042 #else
0043 static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
0044                     struct i2c_adapter *i2c,
0045                     const struct fc0012_config *cfg)
0046 {
0047     pr_warn("%s: driver disabled by Kconfig\n", __func__);
0048     return NULL;
0049 }
0050 #endif
0051 
0052 #endif