diff options
author | Tomasz Figa <t.figa@samsung.com> | 2014-07-02 17:41:01 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-07-11 14:08:37 +0200 |
commit | 2e4a4fda30fcf961f06573336db98cd460d3bf72 (patch) | |
tree | 44da78c25e9cf12a3e7b91ca2c9dd7ae386fbcb2 /Kconfig | |
parent | 6c6ce620e08f8764fd9884094afb274e6e85a47a (diff) | |
download | linux-2e4a4fda30fcf961f06573336db98cd460d3bf72.tar.bz2 |
pinctrl: exynos: Consolidate irq_chips of GPIO and WKUP EINTs
Handling of irq_chip operations for GPIO and WKUP external interrupts
is mostly the same, with the difference being offset of registers.
However currently the driver has all the code duplicated for both EINT
types, which is undesirable, because changes in irq_chip operations have
to be done to both instances of the same code.
This patch fixes this by creating exynos_irq_chip struct that has normal
irq_chip struct embedded and contain differences between particular EINT
types, which are three register offsets. One instance of code is removed
and the new structure is used instead to fetch necessary data instead of
samsung_pin_ctrl struct used previously.
While at it, the patch removes Exynos-specific fields from
aforementioned structure to improve layering of the driver.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions