02a37aa3767fb172070927362bc9692403198b62
[openwrt/staging/blocktrron.git] /
1 From 60df90d6829d16338e2971420220395cfc289247 Mon Sep 17 00:00:00 2001
2 From: Bjorn Andersson <bjorn.andersson@linaro.org>
3 Date: Sun, 17 Oct 2021 09:12:16 -0700
4 Subject: [PATCH] mfd: qcom-spmi-pmic: Sort compatibles in the driver
5
6 Sort the compatibles in the driver, to make it easier to validate that
7 the DT binding and driver are in sync.
8
9 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
10 Signed-off-by: Lee Jones <lee.jones@linaro.org>
11 Link: https://lore.kernel.org/r/20211017161218.2378176-2-bjorn.andersson@linaro.org
12 ---
13 drivers/mfd/qcom-spmi-pmic.c | 30 +++++++++++++++---------------
14 1 file changed, 15 insertions(+), 15 deletions(-)
15
16 --- a/drivers/mfd/qcom-spmi-pmic.c
17 +++ b/drivers/mfd/qcom-spmi-pmic.c
18 @@ -40,27 +40,27 @@
19 #define PM660_SUBTYPE 0x1B
20
21 static const struct of_device_id pmic_spmi_id_table[] = {
22 - { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
23 - { .compatible = "qcom,pm8941", .data = (void *)PM8941_SUBTYPE },
24 - { .compatible = "qcom,pm8841", .data = (void *)PM8841_SUBTYPE },
25 + { .compatible = "qcom,pm660", .data = (void *)PM660_SUBTYPE },
26 + { .compatible = "qcom,pm660l", .data = (void *)PM660L_SUBTYPE },
27 + { .compatible = "qcom,pm8004", .data = (void *)PM8004_SUBTYPE },
28 + { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE },
29 { .compatible = "qcom,pm8019", .data = (void *)PM8019_SUBTYPE },
30 - { .compatible = "qcom,pm8226", .data = (void *)PM8226_SUBTYPE },
31 { .compatible = "qcom,pm8110", .data = (void *)PM8110_SUBTYPE },
32 - { .compatible = "qcom,pma8084", .data = (void *)PMA8084_SUBTYPE },
33 - { .compatible = "qcom,pmi8962", .data = (void *)PMI8962_SUBTYPE },
34 - { .compatible = "qcom,pmd9635", .data = (void *)PMD9635_SUBTYPE },
35 - { .compatible = "qcom,pm8994", .data = (void *)PM8994_SUBTYPE },
36 - { .compatible = "qcom,pmi8994", .data = (void *)PMI8994_SUBTYPE },
37 - { .compatible = "qcom,pm8916", .data = (void *)PM8916_SUBTYPE },
38 - { .compatible = "qcom,pm8004", .data = (void *)PM8004_SUBTYPE },
39 + { .compatible = "qcom,pm8226", .data = (void *)PM8226_SUBTYPE },
40 + { .compatible = "qcom,pm8841", .data = (void *)PM8841_SUBTYPE },
41 { .compatible = "qcom,pm8909", .data = (void *)PM8909_SUBTYPE },
42 + { .compatible = "qcom,pm8916", .data = (void *)PM8916_SUBTYPE },
43 + { .compatible = "qcom,pm8941", .data = (void *)PM8941_SUBTYPE },
44 { .compatible = "qcom,pm8950", .data = (void *)PM8950_SUBTYPE },
45 - { .compatible = "qcom,pmi8950", .data = (void *)PMI8950_SUBTYPE },
46 + { .compatible = "qcom,pm8994", .data = (void *)PM8994_SUBTYPE },
47 { .compatible = "qcom,pm8998", .data = (void *)PM8998_SUBTYPE },
48 + { .compatible = "qcom,pma8084", .data = (void *)PMA8084_SUBTYPE },
49 + { .compatible = "qcom,pmd9635", .data = (void *)PMD9635_SUBTYPE },
50 + { .compatible = "qcom,pmi8950", .data = (void *)PMI8950_SUBTYPE },
51 + { .compatible = "qcom,pmi8962", .data = (void *)PMI8962_SUBTYPE },
52 + { .compatible = "qcom,pmi8994", .data = (void *)PMI8994_SUBTYPE },
53 { .compatible = "qcom,pmi8998", .data = (void *)PMI8998_SUBTYPE },
54 - { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE },
55 - { .compatible = "qcom,pm660l", .data = (void *)PM660L_SUBTYPE },
56 - { .compatible = "qcom,pm660", .data = (void *)PM660_SUBTYPE },
57 + { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE },
58 { }
59 };
60