ssb: gpio_driver: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 22:00:46 +0000 (23:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2016 13:34:49 +0000 (15:34 +0200)
commit2d4443be10a70100cfdc1abcf1475a86bc62534b
treee2f204774490a3fb04acf7a2ff4c7afe0e26794f
parent3769a895b4a61b66085f97f8124df4833ee6e577
ssb: gpio_driver: 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: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Michael Buesch <m@bues.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/ssb/driver_gpio.c