Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1164632

[PATCH] ipmi: constify ACPI device ids

Path csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Mathias Krause <minipli@googlemail.com>
Newsgroups linux.kernel
Subject [PATCH] ipmi: constify ACPI device ids
Date Sat, 13 Jun 2015 14:30:02 +0200
Message-ID <pASJs-4qa-5@gated-at.bofh.it> (permalink)
X-Original-To Corey Minyard <minyard@acm.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=I9GhskiqEF54GK0acyIvqGmUSIQB9his0n41lrYAPS4=; b=VpWsypFARLoON0X1B6zWx++N1omQ8hcVKr3dCKfISRDNlp7GoY70l63WhWjkYT8U9u fTkkPB/jCR7NI9v46Wx7r6x1A2TC9x4xyEIAf4cZq/PvkNx5OtGiV42PCPhJE4OcjhJa HWN7Hv8qjNtHP9XnIDtotcY4SkyvtUsHVlizBRAFzkrdUtyYe5TYraDSWKJwD+MJjbe6 U12g7HdClGZzDIkZW1gHH5sLsp5R1J5zB3C5mxNx6bkCjHz67lpLotX7tzdNuaL1pR+a sECY6L01H7iaDN4FQF2IPEjxft4oyAfhdgBf/rN36Hwu10P92CppUqJWC9iwulwdsXPq uK5g==
X-Received by 10.180.90.209 with SMTP id by17mr15328568wib.2.1434197991241; Sat, 13 Jun 2015 05:19:51 -0700 (PDT)
X-Mailer git-send-email 1.7.10.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 29
Organization linux.* mail to news gateway
X-Original-Cc "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Mathias Krause <minipli@googlemail.com>
X-Original-Date Sat, 13 Jun 2015 14:19:33 +0200
X-Original-Message-ID <1434197973-8018-1-git-send-email-minipli@googlemail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1164632

Show key headers only | View raw


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] ipmi: constify ACPI device ids Mathias Krause <minipli@googlemail.com> - 2015-06-13 14:30 +0200
  Re: [PATCH] ipmi: constify ACPI device ids Corey Minyard <minyard@acm.org> - 2015-06-13 18:30 +0200

csiph-web