18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * cxd2880.h 48c2ecf20Sopenharmony_ci * Sony CXD2880 DVB-T2/T tuner + demodulator driver public definitions 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef CXD2880_H 108c2ecf20Sopenharmony_ci#define CXD2880_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cistruct cxd2880_config { 138c2ecf20Sopenharmony_ci struct spi_device *spi; 148c2ecf20Sopenharmony_ci struct mutex *spi_mutex; /* For SPI access exclusive control */ 158c2ecf20Sopenharmony_ci}; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_CXD2880) 188c2ecf20Sopenharmony_ciextern struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe, 198c2ecf20Sopenharmony_ci struct cxd2880_config *cfg); 208c2ecf20Sopenharmony_ci#else 218c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *cxd2880_attach(struct dvb_frontend *fe, 228c2ecf20Sopenharmony_ci struct cxd2880_config *cfg) 238c2ecf20Sopenharmony_ci{ 248c2ecf20Sopenharmony_ci pr_warn("%s: driver disabled by Kconfig\n", __func__); 258c2ecf20Sopenharmony_ci return NULL; 268c2ecf20Sopenharmony_ci} 278c2ecf20Sopenharmony_ci#endif /* CONFIG_DVB_CXD2880 */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif /* CXD2880_H */ 30