Path: blob/master/drivers/media/common/tuners/tda18212_priv.h
15112 views
/*1* NXP TDA18212HN silicon tuner driver2*3* Copyright (C) 2011 Antti Palosaari <[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* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License along16* with this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#ifndef TDA18212_PRIV_H21#define TDA18212_PRIV_H2223#include "tda18212.h"2425#define LOG_PREFIX "tda18212"2627#undef dbg28#define dbg(f, arg...) \29if (debug) \30printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg)31#undef err32#define err(f, arg...) printk(KERN_ERR LOG_PREFIX": " f "\n" , ## arg)33#undef info34#define info(f, arg...) printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg)35#undef warn36#define warn(f, arg...) printk(KERN_WARNING LOG_PREFIX": " f "\n" , ## arg)3738struct tda18212_priv {39struct tda18212_config *cfg;40struct i2c_adapter *i2c;41};4243#endif444546