Path: blob/master/drivers/media/common/tuners/max2165.h
15112 views
/*1* Driver for Maxim MAX2165 silicon tuner2*3* Copyright (c) 2009 David T. L. Wong <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13*14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#ifndef __MAX2165_H__22#define __MAX2165_H__2324struct dvb_frontend;25struct i2c_adapter;2627struct max2165_config {28u8 i2c_address;29u8 osc_clk; /* in MHz, selectable values: 4,16,18,20,22,24,26,28 */30};3132#if defined(CONFIG_MEDIA_TUNER_MAX2165) || \33(defined(CONFIG_MEDIA_TUNER_MAX2165_MODULE) && defined(MODULE))34extern struct dvb_frontend *max2165_attach(struct dvb_frontend *fe,35struct i2c_adapter *i2c,36struct max2165_config *cfg);37#else38static inline struct dvb_frontend *max2165_attach(struct dvb_frontend *fe,39struct i2c_adapter *i2c,40struct max2165_config *cfg)41{42printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);43return NULL;44}45#endif4647#endif484950