pinctrl: samsung: Constify samsung_pin_ctrl struct
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 23 Sep 2014 19:05:40 +0000 (21:05 +0200)
committerTomasz Figa <tomasz.figa@gmail.com>
Sun, 9 Nov 2014 12:30:14 +0000 (21:30 +0900)
commit1bf00d7a6dbff0a29eff4f8c022653b2bc9f5b97
tree99cf95b25d3b0f21c55214832bdfcbfdb6685e93
parent94ce944bed8a849a9b83b4e66f0e6e4abc16c457
pinctrl: samsung: Constify samsung_pin_ctrl struct

In order to separate initialization constants from runtime data, this
patch modifies the driver to store only constant data in
samsung_pin_ctrl struct and copy data required at runtime to
samsung_pinctrl_drv_data struct. This makes it possible to mark all
existing instances of samsung_pin_ctrl struct as const and __initconst.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
drivers/pinctrl/samsung/pinctrl-exynos.c
drivers/pinctrl/samsung/pinctrl-s3c24xx.c
drivers/pinctrl/samsung/pinctrl-s3c64xx.c
drivers/pinctrl/samsung/pinctrl-samsung.c
drivers/pinctrl/samsung/pinctrl-samsung.h