Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 2 | /* |
| 3 | Driver for ST stb6000 DVBS Silicon tuner |
| 4 | |
| 5 | Copyright (C) 2008 Igor M. Liplianin (liplianin@me.by) |
| 6 | |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 7 | |
| 8 | */ |
| 9 | |
| 10 | #ifndef __DVB_STB6000_H__ |
| 11 | #define __DVB_STB6000_H__ |
| 12 | |
| 13 | #include <linux/i2c.h> |
Mauro Carvalho Chehab | fada193 | 2017-12-28 13:03:51 -0500 | [diff] [blame] | 14 | #include <media/dvb_frontend.h> |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 15 | |
Mauro Carvalho Chehab | be9b53c | 2017-11-29 14:02:22 -0500 | [diff] [blame] | 16 | #if IS_REACHABLE(CONFIG_DVB_STB6000) |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 17 | /** |
| 18 | * Attach a stb6000 tuner to the supplied frontend structure. |
| 19 | * |
Mauro Carvalho Chehab | b95b0c9 | 2017-11-29 12:39:19 -0500 | [diff] [blame] | 20 | * @fe: Frontend to attach to. |
| 21 | * @addr: i2c address of the tuner. |
| 22 | * @i2c: i2c adapter to use. |
| 23 | * |
| 24 | * return: FE pointer on success, NULL on failure. |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 25 | */ |
Igor M. Liplianin | e4aab64 | 2008-09-23 15:43:57 -0300 | [diff] [blame] | 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) |
| 32 | { |
| 33 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
| 34 | return NULL; |
| 35 | } |
| 36 | #endif /* CONFIG_DVB_STB6000 */ |
| 37 | |
| 38 | #endif /* __DVB_STB6000_H__ */ |