0001
0002
0003
0004
0005
0006
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;
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
0028
0029 #endif