1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Fujitsu mb86a20s driver
5 * Copyright (C) 2010 Mauro Carvalho Chehab
11 #include <linux/dvb/frontend.h>
14 * struct mb86a20s_config - Define the per-device attributes of the frontend
16 * @fclk: Clock frequency. If zero, assumes the default
18 * @demod_address: the demodulator's i2c address
19 * @is_serial: if true, TS is serial. Otherwise, TS is parallel
21 struct mb86a20s_config
{
27 #if IS_REACHABLE(CONFIG_DVB_MB86A20S)
29 * Attach a mb86a20s demod
31 * @config: pointer to &struct mb86a20s_config with demod configuration.
32 * @i2c: i2c adapter to use.
34 * return: FE pointer on success, NULL on failure.
36 extern struct dvb_frontend
*mb86a20s_attach(const struct mb86a20s_config
*config
,
37 struct i2c_adapter
*i2c
);
40 static inline struct dvb_frontend
*mb86a20s_attach(
41 const struct mb86a20s_config
*config
, struct i2c_adapter
*i2c
)
43 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);