]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/media/dvb-frontends/lgs8gl5.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61
[mirror_ubuntu-jammy-kernel.git] / drivers / media / dvb-frontends / lgs8gl5.h
CommitLineData
74ba9207 1/* SPDX-License-Identifier: GPL-2.0-or-later */
dfbdce04
TL
2/*
3 Legend Silicon LGS-8GL5 DMB-TH OFDM demodulator driver
4
5 Copyright (C) 2008 Sirius International (Hong Kong) Limited
6 Timothy Lee <timothy.lee@siriushk.com>
7
dfbdce04
TL
8
9*/
10
11#ifndef LGS8GL5_H
12#define LGS8GL5_H
13
14#include <linux/dvb/frontend.h>
15
16struct lgs8gl5_config {
17 /* the demodulator's i2c address */
18 u8 demod_address;
19};
20
9b174527 21#if IS_REACHABLE(CONFIG_DVB_LGS8GL5)
dfbdce04
TL
22extern struct dvb_frontend *lgs8gl5_attach(
23 const struct lgs8gl5_config *config, struct i2c_adapter *i2c);
24#else
25static inline struct dvb_frontend *lgs8gl5_attach(
26 const struct lgs8gl5_config *config, struct i2c_adapter *i2c) {
27 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
28 return NULL;
29}
30#endif /* CONFIG_DVB_LGS8GL5 */
31
32#endif /* LGS8GL5_H */