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

Commit 4165346

Browse files
t-8chrafaeljw
authored andcommitted
ACPI: SBS: constify powersupply properties
The arrays are never modified, make them const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 158ee9f commit 4165346

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/acpi/sbs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ static int acpi_sbs_battery_get_property(struct power_supply *psy,
241241
return 0;
242242
}
243243

244-
static enum power_supply_property sbs_ac_props[] = {
244+
static const enum power_supply_property sbs_ac_props[] = {
245245
POWER_SUPPLY_PROP_ONLINE,
246246
};
247247

248-
static enum power_supply_property sbs_charge_battery_props[] = {
248+
static const enum power_supply_property sbs_charge_battery_props[] = {
249249
POWER_SUPPLY_PROP_STATUS,
250250
POWER_SUPPLY_PROP_PRESENT,
251251
POWER_SUPPLY_PROP_TECHNOLOGY,
@@ -263,7 +263,7 @@ static enum power_supply_property sbs_charge_battery_props[] = {
263263
POWER_SUPPLY_PROP_MANUFACTURER,
264264
};
265265

266-
static enum power_supply_property sbs_energy_battery_props[] = {
266+
static const enum power_supply_property sbs_energy_battery_props[] = {
267267
POWER_SUPPLY_PROP_STATUS,
268268
POWER_SUPPLY_PROP_PRESENT,
269269
POWER_SUPPLY_PROP_TECHNOLOGY,

0 commit comments

Comments
 (0)