brintos

brintos / linux-shallow public Read only

0
0
Text · 927 B · 35810d9 Raw
40 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * lnbp22.h - driver for lnb supply and control ic lnbp224 *5 * Copyright (C) 2006 Dominik Kuhlen6 * Based on lnbp21.h7 *8 * the project's page is at https://linuxtv.org9 */10 11#ifndef _LNBP22_H12#define _LNBP22_H13 14/* Enable */15#define LNBP22_EN	  0x1016/* Voltage selection */17#define LNBP22_VSEL	0x0218/* Plus 1 Volt Bit */19#define LNBP22_LLC	0x0120 21#include <linux/dvb/frontend.h>22 23#if IS_REACHABLE(CONFIG_DVB_LNBP22)24/*25 * override_set and override_clear control which system register bits (above)26 * to always set & clear27 */28extern struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,29						struct i2c_adapter *i2c);30#else31static inline struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,32						struct i2c_adapter *i2c)33{34	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);35	return NULL;36}37#endif /* CONFIG_DVB_LNBP22 */38 39#endif /* _LNBP22_H */40