]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc: cpm_common: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 14:05:43 +0000 (15:05 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:52:37 +0000 (10:52 +0200)
commita14a2d484b386972f9027246dbe5d066519edb9f
treefd0f749a0e9822168b8598c571a5cb49580d3ab0
parente65078f1f3490c753f8c223b088e8a482968b891
powerpc: cpm_common: 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/cpm_common.c