Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / stb6000.h
blob38da55af7ea9505d215c470c7acf3f2c27a13f6e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Driver for ST stb6000 DVBS Silicon tuner
5 Copyright (C) 2008 Igor M. Liplianin (liplianin@me.by)
8 */
10 #ifndef __DVB_STB6000_H__
11 #define __DVB_STB6000_H__
13 #include <linux/i2c.h>
14 #include <media/dvb_frontend.h>
16 #if IS_REACHABLE(CONFIG_DVB_STB6000)
17 /**
18 * stb6000_attach - Attach a stb6000 tuner to the supplied frontend structure.
20 * @fe: Frontend to attach to.
21 * @addr: i2c address of the tuner.
22 * @i2c: i2c adapter to use.
24 * return: FE pointer on success, NULL on failure.
26 extern struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
27 struct i2c_adapter *i2c);
28 #else
29 static inline struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe,
30 int addr,
31 struct i2c_adapter *i2c)
33 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
34 return NULL;
36 #endif /* CONFIG_DVB_STB6000 */
38 #endif /* __DVB_STB6000_H__ */