mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 21:36:42 +07:00
a3b2924547
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the ep93xx include directories Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Ryan Mallon <rmallon@gmail.com> Acked-by: Vinod Koul <vinod.koul@linux.intel.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Jeff Garzik <jgarzik@pobox.com> Cc: Dan Williams <djbw@fb.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Liam Girdwood <lrg@ti.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Mika Westerberg <mika.westerberg@iki.fi> Cc: Axel Lin <axel.lin@gmail.com>
30 lines
780 B
C
30 lines
780 B
C
#ifndef __ASM_MACH_EP93XX_SPI_H
|
|
#define __ASM_MACH_EP93XX_SPI_H
|
|
|
|
struct spi_device;
|
|
|
|
/**
|
|
* struct ep93xx_spi_info - EP93xx specific SPI descriptor
|
|
* @num_chipselect: number of chip selects on this board, must be
|
|
* at least one
|
|
* @use_dma: use DMA for the transfers
|
|
*/
|
|
struct ep93xx_spi_info {
|
|
int num_chipselect;
|
|
bool use_dma;
|
|
};
|
|
|
|
/**
|
|
* struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device
|
|
* @setup: setup the chip select mechanism
|
|
* @cleanup: cleanup the chip select mechanism
|
|
* @cs_control: control the device chip select
|
|
*/
|
|
struct ep93xx_spi_chip_ops {
|
|
int (*setup)(struct spi_device *spi);
|
|
void (*cleanup)(struct spi_device *spi);
|
|
void (*cs_control)(struct spi_device *spi, int value);
|
|
};
|
|
|
|
#endif /* __ASM_MACH_EP93XX_SPI_H */
|