Skip to contentSkip to conversation

regulator: Remove unneeded semicolons

PATCH Applied Krzysztof Kozlowski 2 participants 2 messages Apr 23, 2015 – Apr 27, 2015

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

PATCH 1/1 regulator: Remove unneeded semicolons

Remove unneeded semicolons after the switch statement to satisfy coccicheck.

---
 drivers/regulator/of_regulator.c |  2 +-
 drivers/regulator/s2mps11.c      | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/regulator/of_regulator.c +1 -1
index 24e812c48d93..e952439e0d83 100644
@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
 		case PM_SUSPEND_STANDBY:
 		default:
 			continue;
-		};
+		}
 
 		suspend_np = of_get_child_by_name(np, regulator_states[i]);
 		if (!suspend_np || !suspend_state)
drivers/regulator/s2mps11.c +5 -5
index ff828117798f..326ffb553371 100644
@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
 		break;
 	default:
 		return -EINVAL;
-	};
+	}
 
 	return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
 			rdev->desc->enable_mask, val);
@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
 		default:
 			state = S2MPS14_ENABLE_SUSPEND;
 			break;
-		};
+		}
 		break;
 	case S2MPU02:
 		switch (rdev_id) {
@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
 		default:
 			state = S2MPU02_ENABLE_SUSPEND;
 			break;
-		};
+		}
 		break;
 	default:
 		return -EINVAL;
-	};
+	}
 
 	ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
 	if (ret < 0)
@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
 		dev_err(&pdev->dev, "Invalid device type: %u\n",
 				    s2mps11->dev_type);
 		return -EINVAL;
-	};
+	}
 
 	s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
 			sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Krzysztof Kozlowski

Remove unneeded semicolons after the switch statement to satisfy coccicheck.

Applied, thanks. Given that the subsystem typically uses per driver/component branches splitting the patch would've been handy.