serial: max310x: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 22:11:05 +0000 (23:11 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2016 13:35:25 +0000 (15:35 +0200)
commita00d60a0a2896bced073810fc86ea0764ac54939
tree11470ec834e7504fc99e3d3579c6b2bd6de6b7e6
parentcbc3f10f9ead9c9f664a9dc6697c31312e36d50e
serial: max310x: 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: Jiri Slaby <jslaby@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/tty/serial/max310x.c