Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cxd2880 / cxd2880.h
blob4ea3510aab66aa5d658fd9c1c74d5760f8278a02
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * cxd2880.h
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver public definitions
6 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
7 */
9 #ifndef CXD2880_H
10 #define CXD2880_H
12 struct cxd2880_config {
13 struct spi_device *spi;
14 struct mutex *spi_mutex; /* For SPI access exclusive control */
17 #if IS_REACHABLE(CONFIG_DVB_CXD2880)
18 extern struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
19 struct cxd2880_config *cfg);
20 #else
21 static inline struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
22 struct cxd2880_config *cfg)
24 pr_warn("%s: driver disabled by Kconfig\n", __func__);
25 return NULL;
27 #endif /* CONFIG_DVB_CXD2880 */
29 #endif /* CXD2880_H */