32859fccc6
Done with sed and God Lines. Only done for C-like code for now. Change-Id: I2fa3bad88bb5b068baa1cfc6bbcddaabb09da1c5 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40053 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
18 lines
486 B
C
18 lines
486 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#ifndef __DEVICE_SPI_H__
|
|
#define __DEVICE_SPI_H__
|
|
|
|
struct device;
|
|
struct spi_bus_operations {
|
|
/*
|
|
* This is a SoC-specific method that can be provided to translate the
|
|
* 'struct device' for a SPI controller into a unique SPI bus
|
|
* number. Returns -1 if the bus number for this bus cannot be
|
|
* determined.
|
|
*/
|
|
int (*dev_to_bus)(struct device *dev);
|
|
};
|
|
|
|
#endif /* __DEVICE_SPI_H__ */
|