Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  Driver for Maxim MAX2165 silicon tuner
0004  *
0005  *  Copyright (c) 2009 David T. L. Wong <davidtlwong@gmail.com>
0006  */
0007 
0008 #ifndef __MAX2165_H__
0009 #define __MAX2165_H__
0010 
0011 struct dvb_frontend;
0012 struct i2c_adapter;
0013 
0014 struct max2165_config {
0015     u8 i2c_address;
0016     u8 osc_clk; /* in MHz, selectable values: 4,16,18,20,22,24,26,28 */
0017 };
0018 
0019 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MAX2165)
0020 extern struct dvb_frontend *max2165_attach(struct dvb_frontend *fe,
0021     struct i2c_adapter *i2c,
0022     struct max2165_config *cfg);
0023 #else
0024 static inline struct dvb_frontend *max2165_attach(struct dvb_frontend *fe,
0025     struct i2c_adapter *i2c,
0026     struct max2165_config *cfg)
0027 {
0028     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0029     return NULL;
0030 }
0031 #endif
0032 
0033 #endif