diff mbox series

[1/5] ACPI: AC: constify powersupply properties

Message ID 20240609-acpi-battery-cleanup-v1-1-344517bdca73@weissschuh.net (mailing list archive)
State Mainlined, archived
Headers show
Series ACPI: (mostly) battery: various fixes | expand

Commit Message

Thomas Weißschuh June 9, 2024, 7:27 a.m. UTC
The array is never modified, make it const.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 drivers/acpi/ac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,
 };