Skip to content

Commit 865d7e7

Browse files
robimarkoandersson
authored andcommitted
cpufreq: qcom-nvmem: use SoC ID-s from bindings
SMEM SoC ID-s are now stored in DT bindings so lets use those instead of defining them in the driver again. Signed-off-by: Robert Marko <robimarko@gmail.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230526204802.3081168-4-robimarko@gmail.com
1 parent 17051d2 commit 865d7e7

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

drivers/cpufreq/qcom-cpufreq-nvmem.c

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@
3131

3232
#define MSM_ID_SMEM 137
3333

34-
enum _msm_id {
35-
MSM8996V3 = 0xF6ul,
36-
APQ8096V3 = 0x123ul,
37-
MSM8996SG = 0x131ul,
38-
APQ8096SG = 0x138ul,
39-
};
34+
#include <dt-bindings/arm/qcom,ids.h>
4035

4136
enum _msm8996_version {
4237
MSM8996_V3,
@@ -154,12 +149,12 @@ static enum _msm8996_version qcom_cpufreq_get_msm_id(void)
154149
msm_id++;
155150

156151
switch ((enum _msm_id)*msm_id) {
157-
case MSM8996V3:
158-
case APQ8096V3:
152+
case QCOM_ID_MSM8996:
153+
case QCOM_ID_APQ8096:
159154
version = MSM8996_V3;
160155
break;
161-
case MSM8996SG:
162-
case APQ8096SG:
156+
case QCOM_ID_MSM8996SG:
157+
case QCOM_ID_APQ8096SG:
163158
version = MSM8996_SG;
164159
break;
165160
default:

0 commit comments

Comments
 (0)