Skip to contentSkip to conversation

Attempt to address a style issue in nvec_power.c

PATCH New [email protected] 1 participant 1 message Dec 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Attempt to address a style issue in nvec_power.c

From: Gabriele Modena <[email protected]>

When running checkpatch.pl on nvec_power.c I noticed that it contained a style issue. This patch attempts to address it by moving const after static.

---
 drivers/staging/nvec/nvec_power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/nvec/nvec_power.c +1 -1
index 0e861c4bfcbf..b1ef196e1cfe 100644
@@ -338,7 +338,7 @@ static const struct power_supply_desc nvec_psy_desc = {
 };
 
 static int counter;
-static int const bat_iter[] = {
+static const int bat_iter[] = {
 	SLOT_STATUS, VOLTAGE, CURRENT, CAPACITY_REMAINING,
 #ifdef EC_FULL_DIAG
 	AVERAGE_CURRENT, TEMPERATURE, TIME_REMAINING,
Signature · 1 line
2.11.0