1bbeae430SDaniel Scheller /* SPDX-License-Identifier: GPL-2.0 */ 21d9b5ff2SDaniel Scheller /* 31d9b5ff2SDaniel Scheller * Driver for the ST STV0910 DVB-S/S2 demodulator. 41d9b5ff2SDaniel Scheller * 51d9b5ff2SDaniel Scheller * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de> 61d9b5ff2SDaniel Scheller * Marcus Metzler <mocm@metzlerbros.de> 71d9b5ff2SDaniel Scheller * developed for Digital Devices GmbH 81d9b5ff2SDaniel Scheller */ 91d9b5ff2SDaniel Scheller 10cd21b334SDaniel Scheller #ifndef _STV0910_H_ 11cd21b334SDaniel Scheller #define _STV0910_H_ 12cd21b334SDaniel Scheller 13cd21b334SDaniel Scheller #include <linux/types.h> 14cd21b334SDaniel Scheller #include <linux/i2c.h> 15cd21b334SDaniel Scheller 16cd21b334SDaniel Scheller struct stv0910_cfg { 17cd21b334SDaniel Scheller u32 clk; 18cd21b334SDaniel Scheller u8 adr; 19cd21b334SDaniel Scheller u8 parallel; 20cd21b334SDaniel Scheller u8 rptlvl; 21cd21b334SDaniel Scheller u8 single; 227069018eSDaniel Scheller u8 tsspeed; 23cd21b334SDaniel Scheller }; 24cd21b334SDaniel Scheller 25cd21b334SDaniel Scheller #if IS_REACHABLE(CONFIG_DVB_STV0910) 26cd21b334SDaniel Scheller 27ddb6a90dSDaniel Scheller struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c, 28cd21b334SDaniel Scheller struct stv0910_cfg *cfg, int nr); 29cd21b334SDaniel Scheller 30cd21b334SDaniel Scheller #else 31cd21b334SDaniel Scheller stv0910_attach(struct i2c_adapter * i2c,struct stv0910_cfg * cfg,int nr)32cd21b334SDaniel Schellerstatic inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c, 33cd21b334SDaniel Scheller struct stv0910_cfg *cfg, 34cd21b334SDaniel Scheller int nr) 35cd21b334SDaniel Scheller { 36cd21b334SDaniel Scheller pr_warn("%s: driver disabled by Kconfig\n", __func__); 37cd21b334SDaniel Scheller return NULL; 38cd21b334SDaniel Scheller } 39cd21b334SDaniel Scheller 40cd21b334SDaniel Scheller #endif /* CONFIG_DVB_STV0910 */ 41cd21b334SDaniel Scheller 42cd21b334SDaniel Scheller #endif /* _STV0910_H_ */ 43