spi: spi-fsl-dspi: account for const type of of_device_id.data
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 2 Jan 2018 13:28:06 +0000 (14:28 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jan 2018 12:19:24 +0000 (12:19 +0000)
commit230c08b2acf65863ac5905ea1fa93106bdd20af3
treec13fb8af844c6482236aab8cf0dda72bdb217ad1
parent00ac9562158e8541d60e91eb72aa9ed0674d4a6a
spi: spi-fsl-dspi: account for const type of of_device_id.data

This driver creates a number of const structures that it stores in the
data field of an of_device_id array.

The data field of an of_device_id structure has type const void *, so
there is no need for a const-discarding cast when putting const values
into such a structure.

Done using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c