| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- From 2b8634d1468ff498cc91b6adf993c27ae6fa079d Mon Sep 17 00:00:00 2001
- From: Robert Marko <[email protected]>
- Date: Fri, 26 May 2023 22:48:01 +0200
- Subject: [PATCH] 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 <[email protected]>
- Reviewed-by: Konrad Dybcio <[email protected]>
- Reviewed-by: Bjorn Andersson <[email protected]>
- Acked-by: Viresh Kumar <[email protected]>
- Signed-off-by: Bjorn Andersson <[email protected]>
- Link: https://lore.kernel.org/r/[email protected]
- ---
- drivers/cpufreq/qcom-cpufreq-nvmem.c | 15 +++++----------
- 1 file changed, 5 insertions(+), 10 deletions(-)
- --- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
- +++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
- @@ -30,12 +30,7 @@
-
- #define MSM_ID_SMEM 137
-
- -enum _msm_id {
- - MSM8996V3 = 0xF6ul,
- - APQ8096V3 = 0x123ul,
- - MSM8996SG = 0x131ul,
- - APQ8096SG = 0x138ul,
- -};
- +#include <dt-bindings/arm/qcom,ids.h>
-
- enum _msm8996_version {
- MSM8996_V3,
- @@ -153,12 +148,12 @@ static enum _msm8996_version qcom_cpufre
- msm_id++;
-
- switch ((enum _msm_id)*msm_id) {
- - case MSM8996V3:
- - case APQ8096V3:
- + case QCOM_ID_MSM8996:
- + case QCOM_ID_APQ8096:
- version = MSM8996_V3;
- break;
- - case MSM8996SG:
- - case APQ8096SG:
- + case QCOM_ID_MSM8996SG:
- + case QCOM_ID_APQ8096SG:
- version = MSM8996_SG;
- break;
- default:
|