]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: rt5677-spi: Rename driver to differentiate from main codec
authorCurtis Malainey <cujomalainey@chromium.org>
Fri, 3 May 2019 19:33:42 +0000 (12:33 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 6 May 2019 14:57:16 +0000 (23:57 +0900)
Currently the SPI driver and the main codec share the same name. This
will become confusing when looking up components when using both
drivers.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677-spi.c

index 167a02773a0b0af10746607da09666fafa14a4ee..1efc37ee625f72ebc176047f06ed0ab560435418 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "rt5677-spi.h"
 
+#define DRV_NAME "rt5677spi"
+
 #define RT5677_SPI_BURST_LEN   240
 #define RT5677_SPI_HEADER      5
 #define RT5677_SPI_FREQ                6000000
@@ -235,7 +237,7 @@ MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id);
 
 static struct spi_driver rt5677_spi_driver = {
        .driver = {
-               .name = "rt5677",
+               .name = DRV_NAME,
                .acpi_match_table = ACPI_PTR(rt5677_spi_acpi_id),
        },
        .probe = rt5677_spi_probe,