gpio: sch: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Dec 2015 13:21:49 +0000 (14:21 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 10:21:13 +0000 (11:21 +0100)
commit737c8fccf1c5b2aae3c6d9a66dce17e35fc39b71
tree57a45f13b07948873b1096e0732b6b8cd7e9069b
parentff4cd029c184f5dabdfe9e115bf657ebd6a2c0f3
gpio: sch: 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: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sch.c