blob: 41d55f627fd28640b37cbcf09af6e6b3f9a90df2 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 driver for LSI L64781 COFDM demodulator
4
5 Copyright (C) 2001 Holger Waechtler for Convergence Integrated Media GmbH
Mauro Carvalho Chehab9101e622005-12-12 00:37:24 -08006 Marko Kohtala <marko.kohtala@luukku.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9*/
10
11#ifndef L64781_H
12#define L64781_H
13
14#include <linux/dvb/frontend.h>
15
16struct l64781_config
17{
18 /* the demodulator's i2c address */
19 u8 demod_address;
Linus Torvalds1da177e2005-04-16 15:20:36 -070020};
21
Arnd Bergmann9b174522015-02-18 14:12:42 -030022#if IS_REACHABLE(CONFIG_DVB_L64781)
Linus Torvalds1da177e2005-04-16 15:20:36 -070023extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
24 struct i2c_adapter* i2c);
Andrew de Quincey102a3422006-08-08 09:10:08 -030025#else
26static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config,
27 struct i2c_adapter* i2c)
28{
Harvey Harrison271ddbf2008-04-08 23:20:00 -030029 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
Andrew de Quincey102a3422006-08-08 09:10:08 -030030 return NULL;
31}
32#endif // CONFIG_DVB_L64781
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
34#endif // L64781_H