staging: vme: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 22:06:50 +0000 (23:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2016 13:35:16 +0000 (15:35 +0200)
commitcbc3f10f9ead9c9f664a9dc6697c31312e36d50e
tree9b708813280eedb3f172eedce6f6ed665ffdd231
parent2d4443be10a70100cfdc1abcf1475a86bc62534b
staging: vme: 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: Manohar Vanga <manohar.vanga@gmail.com>
Cc: devel@driverdev.osuosl.org
Acked-by: Martyn Welch <martyn@welchs.me.uk>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/staging/vme/devices/vme_pio2_gpio.c