summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-09-09 17:59:42 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-09-14 20:57:55 -0400
commit844142c3f80c66fb2c311b118d60abdfe02322cb (patch)
tree2fb2d14216f2021db2128cd81ce9796867977926
parent636c19d38920caee61d694ef306d110d33935038 (diff)
ACPI / scan: constify struct acpi_hardware_id::id
This is preparation for using kstrdup_const to initialize that member. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/scan.c4
-rw-r--r--drivers/pnp/pnpacpi/core.c4
-rw-r--r--include/acpi/acpi_bus.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 01136b879038..a3eaf2080707 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1472,7 +1472,7 @@ bool acpi_device_is_present(struct acpi_device *adev)
1472} 1472}
1473 1473
1474static bool acpi_scan_handler_matching(struct acpi_scan_handler *handler, 1474static bool acpi_scan_handler_matching(struct acpi_scan_handler *handler,
1475 char *idstr, 1475 const char *idstr,
1476 const struct acpi_device_id **matchid) 1476 const struct acpi_device_id **matchid)
1477{ 1477{
1478 const struct acpi_device_id *devid; 1478 const struct acpi_device_id *devid;
@@ -1491,7 +1491,7 @@ static bool acpi_scan_handler_matching(struct acpi_scan_handler *handler,
1491 return false; 1491 return false;
1492} 1492}
1493 1493
1494static struct acpi_scan_handler *acpi_scan_match_handler(char *idstr, 1494static struct acpi_scan_handler *acpi_scan_match_handler(const char *idstr,
1495 const struct acpi_device_id **matchid) 1495 const struct acpi_device_id **matchid)
1496{ 1496{
1497 struct acpi_scan_handler *handler; 1497 struct acpi_scan_handler *handler;
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 5153d1d69aee..9113876487ed 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -207,7 +207,7 @@ struct pnp_protocol pnpacpi_protocol = {
207}; 207};
208EXPORT_SYMBOL(pnpacpi_protocol); 208EXPORT_SYMBOL(pnpacpi_protocol);
209 209
210static char *__init pnpacpi_get_id(struct acpi_device *device) 210static const char *__init pnpacpi_get_id(struct acpi_device *device)
211{ 211{
212 struct acpi_hardware_id *id; 212 struct acpi_hardware_id *id;
213 213
@@ -222,7 +222,7 @@ static char *__init pnpacpi_get_id(struct acpi_device *device)
222static int __init pnpacpi_add_device(struct acpi_device *device) 222static int __init pnpacpi_add_device(struct acpi_device *device)
223{ 223{
224 struct pnp_dev *dev; 224 struct pnp_dev *dev;
225 char *pnpid; 225 const char *pnpid;
226 struct acpi_hardware_id *id; 226 struct acpi_hardware_id *id;
227 int error; 227 int error;
228 228
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 9a1b46c64fc1..fec002919b65 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -227,7 +227,7 @@ typedef char acpi_device_class[20];
227 227
228struct acpi_hardware_id { 228struct acpi_hardware_id {
229 struct list_head list; 229 struct list_head list;
230 char *id; 230 const char *id;
231}; 231};
232 232
233struct acpi_pnp_type { 233struct acpi_pnp_type {