summaryrefslogtreecommitdiff
path: root/drivers/regulator/fixed.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-14 17:46:36 +0900
committerMark Brown <broonie@linaro.org>2013-10-15 13:21:44 +0100
commit609d5f6ddc18d05801646c869fcf4d0537b9110b (patch)
tree267da1e44ea8057725643c3801f5e9c3186ebd47 /drivers/regulator/fixed.c
parentc368e5fc2a190923b786f2de3e79430ea3566a25 (diff)
regulator: fixed: Fix checkpatch issue
Fix the following checkpatch warnings. WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/fixed.c')
-rw-r--r--drivers/regulator/fixed.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index de811f3b921b..5ea64b94341c 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -168,17 +168,15 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
cfg.ena_gpio = config->gpio;
cfg.ena_gpio_invert = !config->enable_high;
if (config->enabled_at_boot) {
- if (config->enable_high) {
+ if (config->enable_high)
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
- } else {
+ else
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
- }
} else {
- if (config->enable_high) {
+ if (config->enable_high)
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
- } else {
+ else
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
- }
}
if (config->gpio_is_open_drain)
cfg.ena_gpio_flags |= GPIOF_OPEN_DRAIN;