Skip to content

Commit

Permalink
spi: stm32: replace st, spi-midi with st, spi-midi-ns to fit bindings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amelie Delaunay authored and Mark Brown committed Jun 28, 2017
1 parent 5fd3d94 commit 042c1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 042c1c6

Please sign in to comment.