Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
David T.L. Wong | 95963cb | 2009-10-26 06:42:34 -0300 | [diff] [blame] | 2 | /* |
| 3 | * Driver for Maxim MAX2165 silicon tuner |
| 4 | * |
| 5 | * Copyright (c) 2009 David T. L. Wong <davidtlwong@gmail.com> |
David T.L. Wong | 95963cb | 2009-10-26 06:42:34 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __MAX2165_H__ |
| 9 | #define __MAX2165_H__ |
| 10 | |
| 11 | struct dvb_frontend; |
| 12 | struct i2c_adapter; |
| 13 | |
| 14 | struct max2165_config { |
| 15 | u8 i2c_address; |
| 16 | u8 osc_clk; /* in MHz, selectable values: 4,16,18,20,22,24,26,28 */ |
| 17 | }; |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MAX2165) |
David T.L. Wong | 95963cb | 2009-10-26 06:42:34 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *max2165_attach(struct dvb_frontend *fe, |
| 21 | struct i2c_adapter *i2c, |
| 22 | struct max2165_config *cfg); |
| 23 | #else |
| 24 | static inline struct dvb_frontend *max2165_attach(struct dvb_frontend *fe, |
| 25 | struct i2c_adapter *i2c, |
| 26 | struct max2165_config *cfg) |
| 27 | { |
| 28 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 29 | return NULL; |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #endif |