pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank
authorTomasz Figa <t.figa@samsung.com>
Thu, 11 Oct 2012 08:11:08 +0000 (10:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:10:11 +0000 (09:10 +0200)
commit62f14c0ef5d1bbd640b42a59f8f084f764a067c4
treedd90d47ca020db2fef8b1a5bde48a17a2b0d9d75
parent7c367d3da697846b80058859937f606c0081beda
pinctrl: samsung: Do not pass gpio_chip to pin_to_reg_bank

The pointer to gpio_chip passed to pin_to_reg_bank utility function is
used only to retrieve a pointer to samsung_pinctrl_drv_data structure.

This patch modifies the function and its users to pass a pointer to
samsung_pinctrl_drv_data directly.

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-samsung.c