pinctrl: samsung: Assing pin numbers dynamically
authorTomasz Figa <t.figa@samsung.com>
Thu, 11 Oct 2012 08:11:09 +0000 (10:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:10:11 +0000 (09:10 +0200)
commit40ba6227aeb3712b0cea0c4f9c3e355cf801f4c4
tree1c253f6caa545c065c0bfc3c31cbdcf128501016
parent62f14c0ef5d1bbd640b42a59f8f084f764a067c4
pinctrl: samsung: Assing pin numbers dynamically

This patch modifies the pinctrl-samsung driver to assign numbers to pins
dynamically instead of static enumerations.

Thanks to this change the amount of code requried to support a SoC can
be greatly reduced and the code made more readable.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-exynos.c
drivers/pinctrl/pinctrl-exynos.h
drivers/pinctrl/pinctrl-samsung.c