ASoC: rt5677: use gpiochip data pointer
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 22:27:09 +0000 (23:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2016 13:36:18 +0000 (15:36 +0200)
commit14900363454b8244b41f77f42013a22db20bb2e2
tree51b41f2b0268468dc0d9e0fd123969261f3b96be
parentdee07cea5452a5d50c6273f7a0d3c1aaa7ce9508
ASoC: rt5677: 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: Bard Liao <bardliao@realtek.com>
Cc: Oder Chiou <oder_chiou@realtek.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
sound/soc/codecs/rt5677.c