Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 158ee9f

Browse files
t-8chrafaeljw
authored andcommitted
ACPI: AC: constify powersupply properties
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>
1 parent 83a7eef commit 158ee9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/ac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int get_ac_property(struct power_supply *psy,
112112
return 0;
113113
}
114114

115-
static enum power_supply_property ac_props[] = {
115+
static const enum power_supply_property ac_props[] = {
116116
POWER_SUPPLY_PROP_ONLINE,
117117
};
118118

0 commit comments

Comments
 (0)