]> git.baikalelectronics.ru Git - kernel.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)
commit1fd6843f3ab5045f26d8d271b4cd5152a6c79365
treedf894d5bd3b3016c9aec7d0d0f3f80f9a7d75336
parent90dae7511809305ddb8dbe920691e1e28b5e9fbf
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