linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] spi: imx: Constify platform_device_id
@ 2015-05-01 15:44 Krzysztof Kozlowski
  2015-05-01 15:44 ` [PATCH 2/4] spi: rspi: " Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:44 UTC (permalink / raw)
  To: Mark Brown, Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
	linux-samsung-soc
  Cc: Krzysztof Kozlowski

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/spi/spi-imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index f08e812b2984..eb7d3a6fb14c 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -674,7 +674,7 @@ static struct spi_imx_devtype_data imx51_ecspi_devtype_data = {
 	.devtype = IMX51_ECSPI,
 };
 
-static struct platform_device_id spi_imx_devtype[] = {
+static const struct platform_device_id spi_imx_devtype[] = {
 	{
 		.name = "imx1-cspi",
 		.driver_data = (kernel_ulong_t) &imx1_cspi_devtype_data,
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-01 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01 15:44 [PATCH 1/4] spi: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:44 ` [PATCH 2/4] spi: rspi: " Krzysztof Kozlowski
2015-05-01 16:37   ` Mark Brown
2015-05-01 15:44 ` [PATCH 3/4] spi: s3c64xx: " Krzysztof Kozlowski
     [not found]   ` <1430495047-31122-3-git-send-email-k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-01 16:38     ` Mark Brown
2015-05-01 15:44 ` [PATCH 4/4] spi: sh-msiof: " Krzysztof Kozlowski
     [not found]   ` <1430495047-31122-4-git-send-email-k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-01 16:41     ` Mark Brown
2015-05-01 16:37 ` [PATCH 1/4] spi: imx: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).