brintos

brintos / linux-shallow public Read only

0
0
Text · 886 B · 0b6f02a Raw
43 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * Driver for the ST STV0910 DVB-S/S2 demodulator.4 *5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>6 *                         Marcus Metzler <mocm@metzlerbros.de>7 *                         developed for Digital Devices GmbH8 */9 10#ifndef _STV0910_H_11#define _STV0910_H_12 13#include <linux/types.h>14#include <linux/i2c.h>15 16struct stv0910_cfg {17	u32 clk;18	u8  adr;19	u8  parallel;20	u8  rptlvl;21	u8  single;22	u8  tsspeed;23};24 25#if IS_REACHABLE(CONFIG_DVB_STV0910)26 27struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,28				    struct stv0910_cfg *cfg, int nr);29 30#else31 32static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,33						  struct stv0910_cfg *cfg,34						  int nr)35{36	pr_warn("%s: driver disabled by Kconfig\n", __func__);37	return NULL;38}39 40#endif /* CONFIG_DVB_STV0910 */41 42#endif /* _STV0910_H_ */43