xref: /linux/drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.h (revision 791d3ef2e11100449837dc0b6fe884e60ca3a484)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * cxd2880_spi_device.h
4  * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5  * SPI access interface
6  *
7  * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
8  */
9 
10 #ifndef CXD2880_SPI_DEVICE_H
11 #define CXD2880_SPI_DEVICE_H
12 
13 #include "cxd2880_spi.h"
14 
15 struct cxd2880_spi_device {
16 	struct spi_device *spi;
17 };
18 
19 int cxd2880_spi_device_initialize(struct cxd2880_spi_device *spi_device,
20 				  enum cxd2880_spi_mode mode,
21 				  u32 speedHz);
22 
23 int cxd2880_spi_device_create_spi(struct cxd2880_spi *spi,
24 				  struct cxd2880_spi_device *spi_device);
25 
26 #endif /* CXD2880_SPI_DEVICE_H */
27