gpio: mvebu: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Dec 2015 10:09:24 +0000 (11:09 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 10:21:09 +0000 (11:21 +0100)
commitbbe760041a05d51746f1b1cd658aaef91466bafc
treebeb01d90324d3f3ee5f3c6e8ddca81e6a875f37f
parenta772a26da7cf605ed33382d7822ebfac18c6b1ef
gpio: mvebu: 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: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c