OSDN Git Service

spi: stm32: replace st, spi-midi with st, spi-midi-ns to fit bindings
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 27 Jun 2017 15:45:16 +0000 (17:45 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 19:00:53 +0000 (20:00 +0100)
This patch fixes the optional dt property used to set master inter-data
idleness.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c

index 1eb07be..3df4baa 100644 (file)
@@ -582,7 +582,7 @@ static int stm32_spi_prepare_msg(struct spi_master *master,
 
        /* SPI slave device may need time between data frames */
        spi->cur_midi = 0;
-       if (np && !of_property_read_u32(np, "st,spi-midi", &spi->cur_midi))
+       if (np && !of_property_read_u32(np, "st,spi-midi-ns", &spi->cur_midi))
                dev_dbg(spi->dev, "%dns inter-data idleness\n", spi->cur_midi);
 
        if (spi_dev->mode & SPI_CPOL)