2024-06-09 07:27:33

by Thomas Weißschuh

[permalink] [raw]
Subject: [PATCH 1/5] ACPI: AC: constify powersupply properties

The array is never modified, make it const.

Signed-off-by: Thomas Weißschuh <[email protected]>
---
drivers/acpi/ac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 09a87fa222c7..eaa70b23dd0b 100644
--- 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,
};


--
2.45.2