ASoC: sm8150: change of_property_read_bool to type u32

of_property_read_bool prevents an overlay to set it false
as /delete-property/ is not supported in device tree overlay.
Use of_property_read_u32 to read property to allow it to
be changed in overlay device tree.

Change-Id: Ic1ae38d99999b3ff7e268a6360d55fc2624c0b6f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
diff --git a/asoc/sm8150.c b/asoc/sm8150.c
index 606ce1d..5f3fc8f 100644
--- a/asoc/sm8150.c
+++ b/asoc/sm8150.c
@@ -6958,6 +6958,8 @@
 	int len_1, len_2, len_3, len_4;
 	int total_links;
 	const struct of_device_id *match;
+	int ret = 0;
+	u32 val = 0;
 
 	match = of_match_node(sm8150_asoc_machine_of_match, dev->of_node);
 	if (!match) {
@@ -6989,7 +6991,8 @@
 			   msm_pahu_be_dai_links,
 			   sizeof(msm_pahu_be_dai_links));
 
-		if (of_property_read_bool(dev->of_node, "qcom,wcn-btfm")) {
+		ret = of_property_read_u32(dev->of_node, "qcom,wcn-btfm", &val);
+		if (!ret && val) {
 			dev_dbg(dev, "%s(): WCN BTFM support present\n",
 				__func__);
 			memcpy(msm_pahu_snd_card_dai_links + total_links,
@@ -6998,8 +7001,9 @@
 			total_links += ARRAY_SIZE(msm_wcn_be_dai_links);
 		}
 
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,ext-disp-audio-rx")) {
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,ext-disp-audio-rx", &val);
+		if (!ret && val) {
 			dev_dbg(dev, "%s(): ext disp audio support present\n",
 				__func__);
 			memcpy(msm_pahu_snd_card_dai_links + total_links,
@@ -7007,15 +7011,19 @@
 			       sizeof(ext_disp_be_dai_link));
 			total_links += ARRAY_SIZE(ext_disp_be_dai_link);
 		}
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,mi2s-audio-intf")) {
+
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,mi2s-audio-intf", &val);
+		if (!ret && val) {
 			memcpy(msm_pahu_snd_card_dai_links + total_links,
 			       msm_mi2s_be_dai_links,
 			       sizeof(msm_mi2s_be_dai_links));
 			total_links += ARRAY_SIZE(msm_mi2s_be_dai_links);
 		}
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,auxpcm-audio-intf")) {
+
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,auxpcm-audio-intf", &val);
+		if (!ret && val) {
 			memcpy(msm_pahu_snd_card_dai_links + total_links,
 			msm_auxpcm_be_dai_links,
 			sizeof(msm_auxpcm_be_dai_links));
@@ -7046,7 +7054,8 @@
 		       msm_tavil_be_dai_links,
 		       sizeof(msm_tavil_be_dai_links));
 
-		if (of_property_read_bool(dev->of_node, "qcom,wcn-btfm")) {
+		ret = of_property_read_u32(dev->of_node, "qcom,wcn-btfm", &val);
+		if (!ret && val) {
 			dev_dbg(dev, "%s(): WCN BTFM support present\n",
 				__func__);
 			memcpy(msm_tavil_dai_links + total_links,
@@ -7055,8 +7064,9 @@
 			total_links += ARRAY_SIZE(msm_wcn_be_dai_links);
 		}
 
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,ext-disp-audio-rx")) {
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,ext-disp-audio-rx", &val);
+		if (!ret && val) {
 			dev_dbg(dev, "%s(): ext disp audio support present\n",
 				__func__);
 			memcpy(msm_tavil_dai_links + total_links,
@@ -7064,15 +7074,19 @@
 			       sizeof(ext_disp_be_dai_link));
 			total_links += ARRAY_SIZE(ext_disp_be_dai_link);
 		}
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,mi2s-audio-intf")) {
+
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,mi2s-audio-intf", &val);
+		if (!ret && val) {
 			memcpy(msm_tavil_dai_links + total_links,
 			       msm_mi2s_be_dai_links,
 			       sizeof(msm_mi2s_be_dai_links));
 			total_links += ARRAY_SIZE(msm_mi2s_be_dai_links);
 		}
-		if (of_property_read_bool(dev->of_node,
-					  "qcom,auxpcm-audio-intf")) {
+
+		ret = of_property_read_u32(dev->of_node,
+					   "qcom,auxpcm-audio-intf", &val);
+		if (!ret && val) {
 			memcpy(msm_tavil_dai_links + total_links,
 			msm_auxpcm_be_dai_links,
 			sizeof(msm_auxpcm_be_dai_links));