Skip to content

Commit e0fe6a3

Browse files
marcanbroonie
authored andcommitted
spi: Rename spi-cs-setup-ns property to spi-cs-setup-delay-ns
As mentioned in the corresponding DT binding commit, the naming scheme for delay properties includes "delay" in the name, so let's keep that consistent. Fixes: 33a2fde ("spi: Introduce spi-cs-setup-ns property") Signed-off-by: Hector Martin <marcan@marcan.st> Link: https://lore.kernel.org/r/20230104093631.15611-3-marcan@marcan.st Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 38892ea commit e0fe6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi,
23102310
if (!of_property_read_u32(nc, "spi-max-frequency", &value))
23112311
spi->max_speed_hz = value;
23122312

2313-
if (!of_property_read_u16(nc, "spi-cs-setup-ns", &cs_setup)) {
2313+
if (!of_property_read_u16(nc, "spi-cs-setup-delay-ns", &cs_setup)) {
23142314
spi->cs_setup.value = cs_setup;
23152315
spi->cs_setup.unit = SPI_DELAY_UNIT_NSECS;
23162316
}

0 commit comments

Comments
 (0)