]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: arizona: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Dec 2015 14:31:31 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 10:21:03 +0000 (11:21 +0100)
commit18992d4ee577838e0fa006bad46d83cafccffbb3
tree4d40f0399f2e23d14f79aa5d2a148f14f89ca5b0
parentfb7228879a5a6552c9cd91561ca7c9b565a102aa
gpio: arizona: 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: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Cc: Mark Brown <broonie@kernel.org>
Reviewed-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-arizona.c