Angel Pons | 32859fc | 2020-04-02 23:48:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Furquan Shaikh | 7606c37 | 2017-02-11 10:57:23 -0800 | [diff] [blame] | 2 | |
| 3 | #ifndef __DEVICE_SPI_H__ |
| 4 | #define __DEVICE_SPI_H__ |
| 5 | |
| 6 | struct device; |
| 7 | struct spi_bus_operations { |
| 8 | /* |
| 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 |
| 12 | * determined. |
| 13 | */ |
| 14 | int (*dev_to_bus)(struct device *dev); |
| 15 | }; |
| 16 | |
| 17 | #endif /* __DEVICE_SPI_H__ */ |