Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002   /*
0003      Driver for ST stb6000 DVBS Silicon tuner
0004 
0005      Copyright (C) 2008 Igor M. Liplianin (liplianin@me.by)
0006 
0007 
0008   */
0009 
0010 #ifndef __DVB_STB6000_H__
0011 #define __DVB_STB6000_H__
0012 
0013 #include <linux/i2c.h>
0014 #include <media/dvb_frontend.h>
0015 
0016 #if IS_REACHABLE(CONFIG_DVB_STB6000)
0017 /**
0018  * stb6000_attach - Attach a stb6000 tuner to the supplied frontend structure.
0019  *
0020  * @fe: Frontend to attach to.
0021  * @addr: i2c address of the tuner.
0022  * @i2c: i2c adapter to use.
0023  *
0024  * return: FE pointer on success, NULL on failure.
0025  */
0026 extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
0027                        struct i2c_adapter *i2c);
0028 #else
0029 static inline struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe,
0030                           int addr,
0031                           struct i2c_adapter *i2c)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif /* CONFIG_DVB_STB6000 */
0037 
0038 #endif /* __DVB_STB6000_H__ */