On Wed, Jul 2, 2014 at 5:41 PM, Tomasz Figa <t.figa@xxxxxxxxxxx> wrote: > 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@xxxxxxxxxxx> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html