pinctrl: tegra: driver layout/consistency fixes
authorStephen Warren <swarren@nvidia.com>
Tue, 24 Feb 2015 21:00:48 +0000 (14:00 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Mar 2015 17:10:57 +0000 (18:10 +0100)
commit8d4684b39b5865ef5471a256adfcd8d7c3e18d43
tree736e56c1c3b1cd0f1d59c0e300fdf380788ffd74
parentb5eec4d061cad4a084c05c7dadd6884fd5fe0df9
pinctrl: tegra: driver layout/consistency fixes

Various non-semantic tweaks and layout/consistency fixes for existing
Tegra pinctrl drivers.

Move the definition of DRV_PINGROUP_REG() before the definition of
PINGROUP() so that a future SoC driver can invoke the former from the
latter.

PINGROUP_BIT_Y(n) is just n, so replace it with n.

Re-wrap the parameters to *PINGROUP().

Keep various enums sorted in the Tegra124 driver.

Various white-space consistency fixes.

These changes aim to update existing drivers to be consistent with future
SoC drivers. While we could ignore these tweaks to the existing drivers,
I'd like to keep everything as consistent as possible for easy comparison.
Besides, I auto-generate the drivers, and maintaining special-cases to
keep the differences in place is annoying.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra114.c
drivers/pinctrl/pinctrl-tegra124.c
drivers/pinctrl/pinctrl-tegra30.c