gpio: use container_of to resolve cs5535_gpio_chip from gpio_chip
authorFabian Frederick <fabf@skynet.be>
Sun, 14 Sep 2014 13:56:55 +0000 (15:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Sep 2014 15:51:39 +0000 (17:51 +0200)
commit56b427678cc3c1c4e305a96c9cfa8ba985c70a48
treefdedc26c8f75d9bf4e1c9295cda6ef66f3e86a54
parent1e960dbb7b12886d2095df05adf8754eef1c26d0
gpio: use container_of to resolve cs5535_gpio_chip from gpio_chip

Use container_of instead of casting first structure member.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-cs5535.c