Commit 7cf225b9 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

regulator: Remove unneeded semicolons

Remove unneeded semicolons after the switch statement to satisfy
coccicheck.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b787f68c
...@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np, ...@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
case PM_SUSPEND_STANDBY: case PM_SUSPEND_STANDBY:
default: default:
continue; continue;
}; }
suspend_np = of_get_child_by_name(np, regulator_states[i]); suspend_np = of_get_child_by_name(np, regulator_states[i]);
if (!suspend_np || !suspend_state) if (!suspend_np || !suspend_state)
......
...@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev) ...@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
break; break;
default: default:
return -EINVAL; return -EINVAL;
}; }
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg, return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
rdev->desc->enable_mask, val); rdev->desc->enable_mask, val);
...@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev) ...@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
default: default:
state = S2MPS14_ENABLE_SUSPEND; state = S2MPS14_ENABLE_SUSPEND;
break; break;
}; }
break; break;
case S2MPU02: case S2MPU02:
switch (rdev_id) { switch (rdev_id) {
...@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev) ...@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
default: default:
state = S2MPU02_ENABLE_SUSPEND; state = S2MPU02_ENABLE_SUSPEND;
break; break;
}; }
break; break;
default: default:
return -EINVAL; return -EINVAL;
}; }
ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
if (ret < 0) if (ret < 0)
...@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) ...@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "Invalid device type: %u\n", dev_err(&pdev->dev, "Invalid device type: %u\n",
s2mps11->dev_type); s2mps11->dev_type);
return -EINVAL; return -EINVAL;
}; }
s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev, s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num, sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment