projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a7eef
)
ACPI: AC: constify powersupply properties
author
Thomas Weißschuh
<linux@weissschuh.net>
Sun, 9 Jun 2024 07:27:12 +0000
(09:27 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 13 Jun 2024 19:26:14 +0000
(21:26 +0200)
The array is never modified, make it const.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ac.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/ac.c
b/drivers/acpi/ac.c
index 09a87fa222c78fee2e4c40987d07c725e37aa5ff..eaa70b23dd0b0876a15124e2455ca6e5ae92587c 100644
(file)
--- a/
drivers/acpi/ac.c
+++ b/
drivers/acpi/ac.c
@@
-112,7
+112,7
@@
static int get_ac_property(struct power_supply *psy,
return 0;
}
-static enum power_supply_property ac_props[] = {
+static
const
enum power_supply_property ac_props[] = {
POWER_SUPPLY_PROP_ONLINE,
};