sound:starfive:pwmdac:Modify compatible name
authorXingyu Wu <xingyu.wu@starfivetech.com>
Wed, 31 Aug 2022 09:49:03 +0000 (17:49 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 1 Sep 2022 02:12:26 +0000 (10:12 +0800)
Modify compatible name to 'starfive,jh7110-pwmdac'.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
sound/soc/starfive/starfive_pwmdac.c
sound/soc/starfive/starfive_pwmdac_transmitter.c

index e0abbcd..cccd577 100755 (executable)
                };
 
                pwmdac: pwmdac@100b0000 {
-                       compatible = "starfive,pwmdac";
+                       compatible = "starfive,jh7110-pwmdac";
                        reg = <0x0 0x100b0000 0x0 0x1000>;
                        clocks = <&clkgen JH7110_APB0>,
                                 <&clkgen JH7110_PWMDAC_CLK_APB>,
                };
 
                pwmdac_codec: pwmdac-transmitter {
-                       compatible = "linux,pwmdac-dit";
+                       compatible = "starfive,jh7110-pwmdac-dit";
                        #sound-dai-cells = <0>;
                        status = "disabled";
                };
index 4f6325a..fd30a17 100755 (executable)
@@ -766,7 +766,7 @@ static const struct snd_soc_dai_ops sf_pwmdac_dai_ops = {
 };
 
 static const struct snd_soc_component_driver sf_pwmdac_component = {
-       .name           = "sf-pwmdac",
+       .name           = "starfive-pwmdac",
        .probe          = pwmdac_probe,
 };
 
@@ -849,7 +849,7 @@ static int sf_pwmdac_remove(struct platform_device *pdev)
 
 #ifdef CONFIG_OF
 static const struct of_device_id sf_pwmdac_of_match[] = {
-       { .compatible = "starfive,pwmdac", },
+       { .compatible = "starfive,jh7110-pwmdac", },
        {},
 };
 
@@ -861,7 +861,7 @@ static struct platform_driver sf_pwmdac_driver = {
        .probe          = sf_pwmdac_probe,
        .remove         = sf_pwmdac_remove,
        .driver         = {
-               .name   = "sf-pwmdac",
+               .name   = "starfive-pwmdac",
                .of_match_table = of_match_ptr(sf_pwmdac_of_match),
        },
 };
index b5445e5..6d58fcf 100755 (executable)
@@ -76,7 +76,7 @@ static int pwmdac_dit_probe(struct platform_device *pdev)
 
 #ifdef CONFIG_OF
 static const struct of_device_id pwmdac_dit_dt_ids[] = {
-       { .compatible = "linux,pwmdac-dit", },
+       { .compatible = "starfive,jh7110-pwmdac-dit", },
        { }
 };
 MODULE_DEVICE_TABLE(of, pwmdac_dit_dt_ids);