brintos

brintos / linux-shallow public Read only

0
0
Text · 960 B · cfae967 Raw
46 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3    Conexant 22702 DVB OFDM demodulator driver4 5    based on:6	Alps TDMB7 DVB OFDM demodulator driver7 8    Copyright (C) 2001-2002 Convergence Integrated Media GmbH9	  Holger Waechtler <holger@convergence.de>10 11    Copyright (C) 2004 Steven Toth <stoth@linuxtv.org>12 13 14*/15 16#ifndef CX22702_H17#define CX22702_H18 19#include <linux/dvb/frontend.h>20 21struct cx22702_config {22	/* the demodulator's i2c address */23	u8 demod_address;24 25	/* serial/parallel output */26#define CX22702_PARALLEL_OUTPUT 027#define CX22702_SERIAL_OUTPUT   128	u8 output_mode;29};30 31#if IS_REACHABLE(CONFIG_DVB_CX22702)32extern struct dvb_frontend *cx22702_attach(33	const struct cx22702_config *config,34	struct i2c_adapter *i2c);35#else36static inline struct dvb_frontend *cx22702_attach(37	const struct cx22702_config *config,38	struct i2c_adapter *i2c)39{40	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);41	return NULL;42}43#endif44 45#endif46