WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / dvb-frontends / lnbh29.h
blob6179921520d9cecf3eb89a77a26ac4a6f545bbf6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Driver for LNB supply and control IC STMicroelectronics LNBH29
5 * Copyright (c) 2018 Socionext Inc.
6 */
8 #ifndef LNBH29_H
9 #define LNBH29_H
11 #include <linux/i2c.h>
12 #include <linux/dvb/frontend.h>
14 /* Using very low E.S.R. capacitors or ceramic caps */
15 #define LNBH29_DATA_COMP BIT(3)
17 struct lnbh29_config {
18 u8 i2c_address;
19 u8 data_config;
22 #if IS_REACHABLE(CONFIG_DVB_LNBH29)
23 struct dvb_frontend *lnbh29_attach(struct dvb_frontend *fe,
24 struct lnbh29_config *cfg,
25 struct i2c_adapter *i2c);
26 #else
27 static inline struct dvb_frontend *lnbh29_attach(struct dvb_frontend *fe,
28 struct lnbh29_config *cfg,
29 struct i2c_adapter *i2c)
31 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
32 return NULL;
34 #endif
36 #endif