powerpc: mpc52xx_gpt: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 13:49:42 +0000 (14:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:50:47 +0000 (10:50 +0200)
commite99190cea39022690193938ff3e80d2faa98f389
tree66a9913082a2589ef46627fa7a1d6ef07e5a7e53
parentca27379f5d2956e08558fbfc0d35b3ba64abbe0c
powerpc: mpc52xx_gpt: 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/platforms/52xx/mpc52xx_gpt.c