From 59fa20f729789d12e7815fede6f5b3fb280dcdc9 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Fri, 31 Oct 2025 23:43:42 +0100 Subject: spi: Squash spi_slave_of_to_plat() into spi_child_post_bind() The spi_slave_of_to_plat() is called from one place, spi_child_post_bind(). Squash it into the later and remove the public declaration, make this function local static. No functional change. Signed-off-by: Marek Vasut --- include/spi.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'include') diff --git a/include/spi.h b/include/spi.h index 2783200d663..95e7d5b1556 100644 --- a/include/spi.h +++ b/include/spi.h @@ -657,17 +657,6 @@ int spi_chip_select(struct udevice *slave); */ int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp); -/** - * spi_slave_of_to_plat() - decode standard SPI platform data - * - * This decodes the speed and mode for a slave from a device tree node - * - * @blob: Device tree blob - * @node: Node offset to read from - * @plat: Place to put the decoded information - */ -int spi_slave_of_to_plat(struct udevice *dev, struct dm_spi_slave_plat *plat); - /** * spi_cs_info() - Check information on a chip select * -- cgit v1.2.3