soc/tegra: pmc: Make alignment consistent
Some recently added code used weird alignment and indentation. Fix these occurrences to make them consistent with the rest of the code. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com>
This commit is contained in:
parent
589997a157
commit
f1d912996f
|
@ -1502,8 +1502,8 @@ static int tegra_io_pad_pinctrl_get_groups_count(struct pinctrl_dev *pctl_dev)
|
|||
return pmc->soc->num_io_pads;
|
||||
}
|
||||
|
||||
static const char *tegra_io_pad_pinctrl_get_group_name(
|
||||
struct pinctrl_dev *pctl, unsigned int group)
|
||||
static const char *tegra_io_pad_pinctrl_get_group_name(struct pinctrl_dev *pctl,
|
||||
unsigned int group)
|
||||
{
|
||||
struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl);
|
||||
|
||||
|
@ -1519,6 +1519,7 @@ static int tegra_io_pad_pinctrl_get_group_pins(struct pinctrl_dev *pctl_dev,
|
|||
|
||||
*pins = &pmc->soc->io_pads[group].id;
|
||||
*num_pins = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1548,14 +1549,18 @@ static int tegra_io_pad_pinconf_get(struct pinctrl_dev *pctl_dev,
|
|||
ret = tegra_io_pad_get_voltage(pmc, pad->id);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
arg = ret;
|
||||
break;
|
||||
|
||||
case PIN_CONFIG_LOW_POWER_MODE:
|
||||
ret = tegra_io_pad_is_powered(pmc, pad->id);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
arg = !ret;
|
||||
break;
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -1622,7 +1627,7 @@ static struct pinctrl_desc tegra_pmc_pctl_desc = {
|
|||
|
||||
static int tegra_pmc_pinctrl_init(struct tegra_pmc *pmc)
|
||||
{
|
||||
int err = 0;
|
||||
int err;
|
||||
|
||||
if (!pmc->soc->num_pin_descs)
|
||||
return 0;
|
||||
|
@ -1635,10 +1640,12 @@ static int tegra_pmc_pinctrl_init(struct tegra_pmc *pmc)
|
|||
pmc);
|
||||
if (IS_ERR(pmc->pctl_dev)) {
|
||||
err = PTR_ERR(pmc->pctl_dev);
|
||||
dev_err(pmc->dev, "unable to register pinctrl, %d\n", err);
|
||||
dev_err(pmc->dev, "failed to register pin controller: %d\n",
|
||||
err);
|
||||
return err;
|
||||
}
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ssize_t reset_reason_show(struct device *dev,
|
||||
|
|
Loading…
Reference in New Issue