pinctrl: mediatek: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 21:06:23 +0000 (22:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 13:15:06 +0000 (14:15 +0100)
commit11aa679a6a0b20fe105a7a955a82153e255bae74
tree115b7c42a466c20b553c347cf3eb4e402735f241
parentcff4c7efbc2a1771af431edad6cf1df2a9d9dd46
pinctrl: mediatek: 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: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c