Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419024

[PATCH v2] soc: qcom: Update properties for smem state referencing

From Bjorn Andersson <bjorn.andersson@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v2] soc: qcom: Update properties for smem state referencing
Date 2016-06-10 07:30 +0200
Message-ID <rInb3-sl-7@gated-at.bofh.it> (permalink)
References <rIm5k-8bU-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Update the property names to match device tree bindings, the correct
values should be qcom,smem-states and qcom,smem-state-names.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---

Realised that we already define the smp2p and smsm nodes in mainline, so don't
change the #qcom,state-cells property.

 drivers/soc/qcom/smem_state.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/soc/qcom/smem_state.c b/drivers/soc/qcom/smem_state.c
index 54261decb369..4e4d5cd3b3cc 100644
--- a/drivers/soc/qcom/smem_state.c
+++ b/drivers/soc/qcom/smem_state.c
@@ -104,21 +104,21 @@ struct qcom_smem_state *qcom_smem_state_get(struct device *dev,
 
 	if (con_id) {
 		index = of_property_match_string(dev->of_node,
-						 "qcom,state-names",
+						 "qcom,smem-state-names",
 						 con_id);
 		if (index < 0) {
-			dev_err(dev, "missing qcom,state-names\n");
+			dev_err(dev, "missing qcom,smem-state-names\n");
 			return ERR_PTR(index);
 		}
 	}
 
 	ret = of_parse_phandle_with_args(dev->of_node,
-					 "qcom,state",
+					 "qcom,smem-states",
 					 "#qcom,state-cells",
 					 index,
 					 &args);
 	if (ret) {
-		dev_err(dev, "failed to parse qcom,state property\n");
+		dev_err(dev, "failed to parse qcom,smem-states property\n");
 		return ERR_PTR(ret);
 	}
 
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] soc: qcom: Update properties for smem state referencing Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-06-10 06:20 +0200
  [PATCH v2] soc: qcom: Update properties for smem state referencing Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-06-10 07:30 +0200
  Re: [PATCH] soc: qcom: Update properties for smem state referencing Rob Herring <robh@kernel.org> - 2016-06-10 20:00 +0200

csiph-web