ASoC: samsung/smartq: use dynamic registration
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Jul 2014 09:09:42 +0000 (11:09 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 1 Dec 2015 20:50:24 +0000 (21:50 +0100)
commitdf0cc2d1e15f739a428f630feb62ce6f040a4e19
tree7c0144ec3d6b25346177c41a70d2e0378fcda198
parent94eb81ad43cedbb8354a14130329f06853b31a60
ASoC: samsung/smartq: use dynamic registration

As a prerequisite for moving s3c64xx into multiplatform configurations,
we need to change the smartq audio driver to stop using hardcoded
gpio numbers from the header file, and instead pass the gpio data
through platform_data.

In order to do that, we also move the code to use module_platform_driver
and register the platform device using platform_device_register_simple
and register the gpios through the gpiod API.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-s3c64xx/mach-smartq.c
sound/soc/samsung/smartq_wm8987.c
This page took 0.029529 seconds and 5 git commands to generate.