ASoC: codecs: Rename "sync-flag" to "awinic,sync-flag"
authorWeidong Wang <wangweidong.a@awinic.com>
Thu, 28 Sep 2023 10:57:25 +0000 (18:57 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 28 Sep 2023 11:38:36 +0000 (13:38 +0200)
Rename "sync-flag" to "awinic,sync-flag", this is to be
consistent with the "awinic,aw88395.yaml" file

Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
Link: https://lore.kernel.org/r/20230928105727.47273-9-wangweidong.a@awinic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88261.c
sound/soc/codecs/aw88261.h

index 7df64159233027cd012d7a2ba4034c835cf16b10..61179e235fbfeb240e203ac7945a971da76a0825 100644 (file)
@@ -1187,13 +1187,11 @@ static void aw88261_parse_channel_dt(struct aw88261 *aw88261)
        struct aw_device *aw_dev = aw88261->aw_pa;
        struct device_node *np = aw_dev->dev->of_node;
        u32 channel_value = AW88261_DEV_DEFAULT_CH;
-       u32 sync_enable = false;
 
        of_property_read_u32(np, "awinic,audio-channel", &channel_value);
-       of_property_read_u32(np, "sync-flag", &sync_enable);
+       aw88261->phase_sync = of_property_read_bool(np, "awinic,sync-flag");
 
        aw_dev->channel = channel_value;
-       aw88261->phase_sync = sync_enable;
 }
 
 static int aw88261_init(struct aw88261 **aw88261, struct i2c_client *i2c, struct regmap *regmap)
index bd0841fa9b77ff5fd64d8de5b2b197c18775431a..734d0f93ced9fb690e88fb4a559133ddb20e58a3 100644 (file)
@@ -453,7 +453,7 @@ struct aw88261 {
        unsigned int mute_st;
        unsigned int amppd_st;
 
-       unsigned char phase_sync;
+       bool phase_sync;
 };
 
 #endif