]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/media/dvb-frontends/stv0288.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Driver for ST STV0288 demodulator
5 Copyright (C) 2006 Georg Acher, BayCom GmbH, acher (at) baycom (dot) de
7 Copyright (C) 2008 TurboSight.com, <bob@turbosight.com>
8 Copyright (C) 2008 Igor M. Liplianin <liplianin@me.by>
9 Removed stb6000 specific tuner code and revised some
18 #include <linux/dvb/frontend.h>
19 #include <media/dvb_frontend.h>
21 struct stv0288_config
{
22 /* the demodulator's i2c address */
27 /* minimum delay before retuning */
30 int (*set_ts_params
)(struct dvb_frontend
*fe
, int is_punctured
);
33 #if IS_REACHABLE(CONFIG_DVB_STV0288)
34 extern struct dvb_frontend
*stv0288_attach(const struct stv0288_config
*config
,
35 struct i2c_adapter
*i2c
);
37 static inline struct dvb_frontend
*stv0288_attach(const struct stv0288_config
*config
,
38 struct i2c_adapter
*i2c
)
40 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
43 #endif /* CONFIG_DVB_STV0288 */
45 static inline int stv0288_writereg(struct dvb_frontend
*fe
, u8 reg
, u8 val
)
48 u8 buf
[] = { reg
, val
};
50 r
= fe
->ops
.write(fe
, buf
, 2);
54 #endif /* STV0288_H */