brintos

brintos / linux-shallow public Read only

0
0
Text · 912 B · 2182851 Raw
39 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3    Driver for Zarlink MT312 Satellite Channel Decoder4 5    Copyright (C) 2003 Andreas Oberritter <obi@linuxtv.org>6 7 8    References:9    http://products.zarlink.com/product_profiles/MT312.htm10    http://products.zarlink.com/product_profiles/SL1935.htm11*/12 13#ifndef MT312_H14#define MT312_H15 16#include <linux/dvb/frontend.h>17 18struct mt312_config {19	/* the demodulator's i2c address */20	u8 demod_address;21 22	/* inverted voltage setting */23	unsigned int voltage_inverted:1;24};25 26#if IS_REACHABLE(CONFIG_DVB_MT312)27struct dvb_frontend *mt312_attach(const struct mt312_config *config,28					struct i2c_adapter *i2c);29#else30static inline struct dvb_frontend *mt312_attach(31	const struct mt312_config *config, struct i2c_adapter *i2c)32{33	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);34	return NULL;35}36#endif /* CONFIG_DVB_MT312 */37 38#endif /* MT312_H */39