Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Steven Toth | f47623a | 2007-07-28 19:17:39 -0300 | [diff] [blame] | 2 | /* |
| 3 | * Driver for Microtune MT2131 "QAM/8VSB single chip tuner" |
| 4 | * |
Steven Toth | 6d89761 | 2008-09-03 17:12:12 -0300 | [diff] [blame] | 5 | * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org> |
Steven Toth | f47623a | 2007-07-28 19:17:39 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __MT2131_H__ |
| 9 | #define __MT2131_H__ |
| 10 | |
| 11 | struct dvb_frontend; |
| 12 | struct i2c_adapter; |
| 13 | |
| 14 | struct mt2131_config { |
| 15 | u8 i2c_address; |
| 16 | u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */ |
| 17 | }; |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2131) |
Steven Toth | f47623a | 2007-07-28 19:17:39 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe, |
| 21 | struct i2c_adapter *i2c, |
| 22 | struct mt2131_config *cfg, |
| 23 | u16 if1); |
| 24 | #else |
| 25 | static inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe, |
| 26 | struct i2c_adapter *i2c, |
| 27 | struct mt2131_config *cfg, |
| 28 | u16 if1) |
| 29 | { |
Harvey Harrison | 271ddbf | 2008-04-08 23:20:00 -0300 | [diff] [blame] | 30 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
Steven Toth | f47623a | 2007-07-28 19:17:39 -0300 | [diff] [blame] | 31 | return NULL; |
| 32 | } |
Mauro Carvalho Chehab | 149ef72 | 2008-04-29 21:38:46 -0300 | [diff] [blame] | 33 | #endif /* CONFIG_MEDIA_TUNER_MT2131 */ |
Steven Toth | f47623a | 2007-07-28 19:17:39 -0300 | [diff] [blame] | 34 | |
Michael Krufky | 3873dd0 | 2007-07-28 20:02:55 -0300 | [diff] [blame] | 35 | #endif /* __MT2131_H__ */ |