1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DEVICE_SPI_H__
4 #define __DEVICE_SPI_H__
7 struct spi_bus_operations
{
9 * This is a SoC-specific method that can be provided to translate the
10 * 'struct device' for a SPI controller into a unique SPI bus
11 * number. Returns -1 if the bus number for this bus cannot be
14 int (*dev_to_bus
)(struct device
*dev
);
17 #endif /* __DEVICE_SPI_H__ */