blob: 398dba65f6e63c2a0a3f5774d04477a9e248a3ad [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Antti Palosaaria15c7b42009-11-13 22:33:45 -03002/*
3 * E3C EC100 demodulator driver
4 *
5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
Antti Palosaaria15c7b42009-11-13 22:33:45 -03006 */
7
8#ifndef EC100_H
9#define EC100_H
10
11#include <linux/dvb/frontend.h>
12
13struct ec100_config {
14 /* demodulator's I2C address */
15 u8 demod_address;
16};
17
18
Arnd Bergmann9b174522015-02-18 14:12:42 -030019#if IS_REACHABLE(CONFIG_DVB_EC100)
Antti Palosaaria15c7b42009-11-13 22:33:45 -030020extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
21 struct i2c_adapter *i2c);
22#else
23static inline struct dvb_frontend *ec100_attach(
24 const struct ec100_config *config, struct i2c_adapter *i2c)
25{
Antti Palosaari20399b32012-09-12 20:23:44 -030026 pr_warn("%s: driver disabled by Kconfig\n", __func__);
Antti Palosaaria15c7b42009-11-13 22:33:45 -030027 return NULL;
28}
29#endif
30
31#endif /* EC100_H */