Debian Codegraph @

src/include/device/spi.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
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__ */