]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: samsung: Separate per-bank init and runtime data
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 23 Sep 2014 19:05:41 +0000 (21:05 +0200)
committerTomasz Figa <tomasz.figa@gmail.com>
Sun, 9 Nov 2014 12:30:15 +0000 (21:30 +0900)
commit8100cf47698fedbde6dc3fa540b1fefcee69fd40
treefa53c113ac0c37c15c26eae99940332d5c7f4d7b
parent1bf00d7a6dbff0a29eff4f8c022653b2bc9f5b97
pinctrl: samsung: Separate per-bank init and runtime data

Currently the driver mixes constant init data with runtime data, which
is far from being elegant and can invite potential hard to track issues.
This patch intends to solve this by introducing a new
samsung_pin_bank_data structure to hold only constant data known at
compile time, which can be copied to main samsung_pin_bank struct used
at runtime.

In addition, thanks to this change, all per-bank initdata can be marked
with const and __initconst keywords and dropped after init completes.

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