summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/uthex.c
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2015-12-29 13:54:04 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-01 03:26:45 +0100
commitc118abc55464fee761be3ea32b4d90db3a9d1bbe (patch)
tree09c4063f98a7db5b0c466d84be97b9cb03b87ff7 /drivers/acpi/acpica/uthex.c
parent33d3a2abbd7afd51d8dcf1e35756e13e6b89f2cb (diff)
downloadlinux-c118abc55464fee761be3ea32b4d90db3a9d1bbe.tar.bz2
ACPICA: Add "const" to some functions that return fixed strings
ACPICA commit 28645f8a113f346c8db103a4f7565fcba88c746f Most of the "get_name" - style functions can return "const char *" with no ill side-effects. Original linux patch from LABBE Corentin <clabbe.montjoie@gmail.com> and backported to ACPICA. Link: https://github.com/acpica/acpica/commit/28645f8a Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/uthex.c')
-rw-r--r--drivers/acpi/acpica/uthex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/uthex.c b/drivers/acpi/acpica/uthex.c
index fda8b3def81c..8ad086ed1a06 100644
--- a/drivers/acpi/acpica/uthex.c
+++ b/drivers/acpi/acpica/uthex.c
@@ -48,7 +48,7 @@
ACPI_MODULE_NAME("uthex")
/* Hex to ASCII conversion table */
-static char acpi_gbl_hex_to_ascii[] = {
+static const char acpi_gbl_hex_to_ascii[] = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
'E', 'F'
};