input: adp5589-keys: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 15:32:08 +0000 (16:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:54:33 +0000 (10:54 +0200)
commit839850f4fb76b56fcad3cabe27fc9f1a03821a2c
treee7c7676e2e937d89be29b7642b59be9394125210
parentfd19f534ab7660883191d5f3c9d01f0c6f444aea
input: adp5589-keys: 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().

Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/input/keyboard/adp5589-keys.c