]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: sysdev: cpm1: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 14:00:49 +0000 (15:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:52:28 +0000 (10:52 +0200)
commite65078f1f3490c753f8c223b088e8a482968b891
treedf894d5bd3b3016c9aec7d0d0f3f80f9a7d75336
parentda5f767ef66a4c71109fdb8577b36864abc3263c
powerpc: sysdev: cpm1: use gpiochip data pointer

This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Cc: Anatolij Gustschin <agust@denx.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/powerpc/sysdev/cpm1.c