mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
c368e5fc2a
commit
609d5f6ddc
@ -168,18 +168,16 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
|
|||||||
cfg.ena_gpio = config->gpio;
|
cfg.ena_gpio = config->gpio;
|
||||||
cfg.ena_gpio_invert = !config->enable_high;
|
cfg.ena_gpio_invert = !config->enable_high;
|
||||||
if (config->enabled_at_boot) {
|
if (config->enabled_at_boot) {
|
||||||
if (config->enable_high) {
|
if (config->enable_high)
|
||||||
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
|
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
|
||||||
} else {
|
else
|
||||||
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (config->enable_high) {
|
|
||||||
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
|
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
|
||||||
} else {
|
} else {
|
||||||
|
if (config->enable_high)
|
||||||
|
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
|
||||||
|
else
|
||||||
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
|
cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (config->gpio_is_open_drain)
|
if (config->gpio_is_open_drain)
|
||||||
cfg.ena_gpio_flags |= GPIOF_OPEN_DRAIN;
|
cfg.ena_gpio_flags |= GPIOF_OPEN_DRAIN;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user