All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipmi: constify ACPI device ids
@ 2015-06-13 12:19 Mathias Krause
  2015-06-13 16:26 ` Corey Minyard
  0 siblings, 1 reply; 2+ messages in thread
From: Mathias Krause @ 2015-06-13 12:19 UTC (permalink / raw)
  To: Corey Minyard
  Cc: Rafael J. Wysocki, Len Brown, openipmi-developer, linux-kernel,
	Mathias Krause

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

Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
 drivers/char/ipmi/ipmi_ssif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index 207689c444a8..95a0910d91e4 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -1787,7 +1787,7 @@ skip_addr:
 }
 
 #ifdef CONFIG_ACPI
-static struct acpi_device_id ssif_acpi_match[] = {
+static const struct acpi_device_id ssif_acpi_match[] = {
 	{ "IPI0001", 0 },
 	{ },
 };
-- 
1.7.10.4


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

* Re: [PATCH] ipmi: constify ACPI device ids
  2015-06-13 12:19 [PATCH] ipmi: constify ACPI device ids Mathias Krause
@ 2015-06-13 16:26 ` Corey Minyard
  0 siblings, 0 replies; 2+ messages in thread
From: Corey Minyard @ 2015-06-13 16:26 UTC (permalink / raw)
  To: Mathias Krause
  Cc: Rafael J. Wysocki, Len Brown, openipmi-developer, linux-kernel

Queued for the next kernel release.  Thanks.

-corey

On 06/13/2015 07:19 AM, Mathias Krause wrote:
> Constify the ACPI device ID array, it doesn't need to be writable at
> runtime.
>
> Signed-off-by: Mathias Krause <minipli@googlemail.com>
> ---
>  drivers/char/ipmi/ipmi_ssif.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
> index 207689c444a8..95a0910d91e4 100644
> --- a/drivers/char/ipmi/ipmi_ssif.c
> +++ b/drivers/char/ipmi/ipmi_ssif.c
> @@ -1787,7 +1787,7 @@ skip_addr:
>  }
>  
>  #ifdef CONFIG_ACPI
> -static struct acpi_device_id ssif_acpi_match[] = {
> +static const struct acpi_device_id ssif_acpi_match[] = {
>  	{ "IPI0001", 0 },
>  	{ },
>  };


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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-13 12:19 [PATCH] ipmi: constify ACPI device ids Mathias Krause
2015-06-13 16:26 ` Corey Minyard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.