]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: AC: constify powersupply properties
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Jun 2024 07:27:12 +0000 (09:27 +0200)
committerRafael 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

index 09a87fa222c78fee2e4c40987d07c725e37aa5ff..eaa70b23dd0b0876a15124e2455ca6e5ae92587c 100644 (file)
@@ -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,
 };