]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda2bb416f891077122ffc84298e8bb544ff982fd
tree66a9913082a2589ef46627fa7a1d6ef07e5a7e53
parent24a7e648697cf1737373823ff5665586ed42e14a
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