Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / lnbh24.h
blobd8d0303c6e00ac3dcbcf3485c7f712652b5a0975
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * lnbh24.h - driver for lnb supply and control ic lnbh24
5 * Copyright (C) 2009 NetUP Inc.
6 * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
7 */
9 #ifndef _LNBH24_H
10 #define _LNBH24_H
12 /* system register bits */
13 #define LNBH24_OLF 0x01
14 #define LNBH24_OTF 0x02
15 #define LNBH24_EN 0x04
16 #define LNBH24_VSEL 0x08
17 #define LNBH24_LLC 0x10
18 #define LNBH24_TEN 0x20
19 #define LNBH24_TTX 0x40
20 #define LNBH24_PCL 0x80
22 #include <linux/dvb/frontend.h>
24 #if IS_REACHABLE(CONFIG_DVB_LNBP21)
25 /* override_set and override_clear control which
26 system register bits (above) to always set & clear */
27 extern struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
28 struct i2c_adapter *i2c, u8 override_set,
29 u8 override_clear, u8 i2c_addr);
30 #else
31 static inline struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
32 struct i2c_adapter *i2c, u8 override_set,
33 u8 override_clear, u8 i2c_addr)
35 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
36 return NULL;
38 #endif
40 #endif