]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: mcp: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Dec 2015 09:09:36 +0000 (10:09 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Jan 2016 10:21:08 +0000 (11:21 +0100)
commit9e03cf0b12f19ef5dd8f113350e26b6d425ebbcb
tree2a6e76764d15b2f25c1769206b266d9d3c6e21ff
parentcf90c9e35be883d8ebcca3d4a2b1044a234f24d8
gpio: mcp: 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: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c