Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     driver for LSI L64781 COFDM demodulator
0004 
0005     Copyright (C) 2001 Holger Waechtler for Convergence Integrated Media GmbH
0006                Marko Kohtala <marko.kohtala@luukku.com>
0007 
0008 
0009 */
0010 
0011 #ifndef L64781_H
0012 #define L64781_H
0013 
0014 #include <linux/dvb/frontend.h>
0015 
0016 struct l64781_config
0017 {
0018     /* the demodulator's i2c address */
0019     u8 demod_address;
0020 };
0021 
0022 #if IS_REACHABLE(CONFIG_DVB_L64781)
0023 extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
0024                       struct i2c_adapter* i2c);
0025 #else
0026 static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config,
0027                       struct i2c_adapter* i2c)
0028 {
0029     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0030     return NULL;
0031 }
0032 #endif // CONFIG_DVB_L64781
0033 
0034 #endif // L64781_H