Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 609d5f6d authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown
Browse files

regulator: fixed: Fix checkpatch issue



Fix the following checkpatch warnings.

  WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c368e5fc
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -168,18 +168,16 @@ 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;