Linux SPI subsystem development
 help / color / mirror / Atom feed
* [PATCH] spi: spi-pxa2xx: Constify ACPI device ids
@ 2015-06-13 12:22 Mathias Krause
       [not found] ` <1434198134-8278-1-git-send-email-minipli-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Mathias Krause @ 2015-06-13 12:22 UTC (permalink / raw)
  To: Mark Brown
  Cc: Rafael J. Wysocki, Len Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	Mathias Krause, Daniel Mack, Haojian Zhuang, Robert Jarzmik

Constify the ACPI device ID array, it doesn't need to be writable at
runtime.

Signed-off-by: Mathias Krause <minipli-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: Daniel Mack <daniel-cYrQPVfZoowdnm+yROfE0A@public.gmane.org>
Cc: Haojian Zhuang <haojian.zhuang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
---
This patch should go on top of spi.git#topic/pxa

 drivers/spi/spi-pxa2xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index f97cd42fbc22..7293d6d875c5 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1265,7 +1265,7 @@ static void cleanup(struct spi_device *spi)
 
 #ifdef CONFIG_ACPI
 
-static struct acpi_device_id pxa2xx_spi_acpi_match[] = {
+static const struct acpi_device_id pxa2xx_spi_acpi_match[] = {
 	{ "INT33C0", LPSS_LPT_SSP },
 	{ "INT33C1", LPSS_LPT_SSP },
 	{ "INT3430", LPSS_LPT_SSP },
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-06-16  9:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-13 12:22 [PATCH] spi: spi-pxa2xx: Constify ACPI device ids Mathias Krause
     [not found] ` <1434198134-8278-1-git-send-email-minipli-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2015-06-15  9:53   ` Mark Brown
     [not found]     ` <20150615095344.GE18309-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-15 17:47       ` Mathias Krause
     [not found]         ` <CA+rthh8WEzdY0vxV-oQ7xTUCtqbhJkTUeym9VNPU+Xm6a7T=YA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-15 19:14           ` Mark Brown
2015-06-15 19:12       ` Robert Jarzmik
     [not found]         ` <878ubkbxbd.fsf-4ty26DBLk+jEm7gnYqmdkQ@public.gmane.org>
2015-06-15 19:20           ` Mark Brown
     [not found]             ` <20150615192025.GE18309-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-16  9:37               ` Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox