Unverified Commit cc4b1567 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown
Browse files

spi: Constify spi_get_ctldata()'s spi parameter

parent 9c8400e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ static inline void spi_dev_put(struct spi_device *spi)
}

/* ctldata is for the bus_controller driver's runtime state */
static inline void *spi_get_ctldata(struct spi_device *spi)
static inline void *spi_get_ctldata(const struct spi_device *spi)
{
	return spi->controller_state;
}