Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Antti Palosaari | a15c7b4 | 2009-11-13 22:33:45 -0300 | [diff] [blame] | 2 | /* |
| 3 | * E3C EC100 demodulator driver |
| 4 | * |
| 5 | * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> |
Antti Palosaari | a15c7b4 | 2009-11-13 22:33:45 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef EC100_H |
| 9 | #define EC100_H |
| 10 | |
| 11 | #include <linux/dvb/frontend.h> |
| 12 | |
| 13 | struct ec100_config { |
| 14 | /* demodulator's I2C address */ |
| 15 | u8 demod_address; |
| 16 | }; |
| 17 | |
| 18 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 19 | #if IS_REACHABLE(CONFIG_DVB_EC100) |
Antti Palosaari | a15c7b4 | 2009-11-13 22:33:45 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *ec100_attach(const struct ec100_config *config, |
| 21 | struct i2c_adapter *i2c); |
| 22 | #else |
| 23 | static inline struct dvb_frontend *ec100_attach( |
| 24 | const struct ec100_config *config, struct i2c_adapter *i2c) |
| 25 | { |
Antti Palosaari | 20399b3 | 2012-09-12 20:23:44 -0300 | [diff] [blame] | 26 | pr_warn("%s: driver disabled by Kconfig\n", __func__); |
Antti Palosaari | a15c7b4 | 2009-11-13 22:33:45 -0300 | [diff] [blame] | 27 | return NULL; |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif /* EC100_H */ |