leds: pca9532: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 15:39:20 +0000 (16:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 6 Jan 2016 23:11:30 +0000 (00:11 +0100)
commitdced14675818bc9627febcc3159ffc1a0d88199d
treeda367bebb6001685b9fa2c444ab83848a13a2e6d
parent2a6643437083c4dc28169a706099cd22769be1f5
leds: pca9532: 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: Riku Voipio <riku.voipio@iki.fi>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/leds/leds-pca9532.c