aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-04-23 08:24:32 -0400
committerMark Brown <broonie@kernel.org>2015-04-27 16:35:20 -0400
commit7cf225b98a7b899323edeb3ef709da880fa88481 (patch)
treedc5a46660851fdc84006339066b900d984b41319
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
regulator: Remove unneeded semicolons
Remove unneeded semicolons after the switch statement to satisfy coccicheck. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/of_regulator.c2
-rw-r--r--drivers/regulator/s2mps11.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index 24e812c48d93..e952439e0d83 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
108 case PM_SUSPEND_STANDBY: 108 case PM_SUSPEND_STANDBY:
109 default: 109 default:
110 continue; 110 continue;
111 }; 111 }
112 112
113 suspend_np = of_get_child_by_name(np, regulator_states[i]); 113 suspend_np = of_get_child_by_name(np, regulator_states[i]);
114 if (!suspend_np || !suspend_state) 114 if (!suspend_np || !suspend_state)
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index ff828117798f..326ffb553371 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
515 break; 515 break;
516 default: 516 default:
517 return -EINVAL; 517 return -EINVAL;
518 }; 518 }
519 519
520 return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg, 520 return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
521 rdev->desc->enable_mask, val); 521 rdev->desc->enable_mask, val);
@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
538 default: 538 default:
539 state = S2MPS14_ENABLE_SUSPEND; 539 state = S2MPS14_ENABLE_SUSPEND;
540 break; 540 break;
541 }; 541 }
542 break; 542 break;
543 case S2MPU02: 543 case S2MPU02:
544 switch (rdev_id) { 544 switch (rdev_id) {
@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
552 default: 552 default:
553 state = S2MPU02_ENABLE_SUSPEND; 553 state = S2MPU02_ENABLE_SUSPEND;
554 break; 554 break;
555 }; 555 }
556 break; 556 break;
557 default: 557 default:
558 return -EINVAL; 558 return -EINVAL;
559 }; 559 }
560 560
561 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); 561 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
562 if (ret < 0) 562 if (ret < 0)
@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
977 dev_err(&pdev->dev, "Invalid device type: %u\n", 977 dev_err(&pdev->dev, "Invalid device type: %u\n",
978 s2mps11->dev_type); 978 s2mps11->dev_type);
979 return -EINVAL; 979 return -EINVAL;
980 }; 980 }
981 981
982 s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev, 982 s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
983 sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num, 983 sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,