blob: 76a39022abaeb649c061a0558fbd01a198bcf1b1 [file] [log] [blame]
Angel Pons32859fc2020-04-02 23:48:27 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Furquan Shaikh7606c372017-02-11 10:57:23 -08002
3#ifndef __DEVICE_SPI_H__
4#define __DEVICE_SPI_H__
5
6struct device;
7struct 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__ */