pinctrl: re-order struct pinctrl_map
authorStephen Warren <swarren@nvidia.com>
Fri, 24 Feb 2012 00:04:39 +0000 (17:04 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Feb 2012 18:10:55 +0000 (19:10 +0100)
commit806d314325812fb8ffe7059bd84a23d334350c21
treece904d5ddab97e25b71b547f7b20844d507b9529
parent1cf94c45ca31c0ad563e72b095782346cba26b6c
pinctrl: re-order struct pinctrl_map

The lookup key in struct pinctrl_map is (.dev_name, .name). Re-order the
struct definition to put the lookup key fields first, and the result
values afterwards. To me at least, this slightly better reflects the
lookup process.

Update the documentation in a similar fashion.

Note: PIN_MAP*() macros aren't updated; I plan to update this once later
when enhancing the mapping table format to support pin config to reduce
churn.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
[Rebased for cherry-picking]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
include/linux/pinctrl/machine.h