Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * cxd2880.h
0004  * Sony CXD2880 DVB-T2/T tuner + demodulator driver public definitions
0005  *
0006  * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
0007  */
0008 
0009 #ifndef CXD2880_H
0010 #define CXD2880_H
0011 
0012 struct cxd2880_config {
0013     struct spi_device *spi;
0014     struct mutex *spi_mutex; /* For SPI access exclusive control */
0015 };
0016 
0017 #if IS_REACHABLE(CONFIG_DVB_CXD2880)
0018 extern struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
0019                     struct cxd2880_config *cfg);
0020 #else
0021 static inline struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe,
0022                     struct cxd2880_config *cfg)
0023 {
0024     pr_warn("%s: driver disabled by Kconfig\n", __func__);
0025     return NULL;
0026 }
0027 #endif /* CONFIG_DVB_CXD2880 */
0028 
0029 #endif /* CXD2880_H */