]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: hikey9xx: hi6421-spmi-pmic: cleanup header file
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 29 Jan 2021 19:51:51 +0000 (20:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2021 12:42:41 +0000 (13:42 +0100)
Remove the IRQ list from the header, as this is used only
inside the driver itself. Also, get rid of two unused
defines.

The net result is that only struct hi6421_spmi_pmic remains
on it, as this is used by the regulator driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/138c3a11e4de0ebabdf27932957852136c2f7510.1611949675.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/hi6421-spmi-pmic.c
include/linux/mfd/hi6421-spmi-pmic.h

index c8e55b7b08e2ddad58115c1c976adba1736b231c..909f7b106af45033558493cccaa0a323ae472ffe 100644 (file)
 #include <linux/slab.h>
 #include <linux/spmi.h>
 
+enum hi6421_spmi_pmic_irq_list {
+       OTMP = 0,
+       VBUS_CONNECT,
+       VBUS_DISCONNECT,
+       ALARMON_R,
+       HOLD_6S,
+       HOLD_1S,
+       POWERKEY_UP,
+       POWERKEY_DOWN,
+       OCP_SCP_R,
+       COUL_R,
+       SIM0_HPD_R,
+       SIM0_HPD_F,
+       SIM1_HPD_R,
+       SIM1_HPD_F,
+       PMIC_IRQ_LIST_MAX,
+};
 /* 8-bit register offset in PMIC */
 #define HISI_MASK_STATE                        0xff
 
index aa8d5382f559a33f10799c45fb81238f58b25c2c..4d61cb266a18d0071800b81f88f3e66f06a9a59d 100644 (file)
@@ -14,9 +14,6 @@
 #include <linux/irqdomain.h>
 #include <linux/regmap.h>
 
-#define HISI_ECO_MODE_ENABLE           (1)
-#define HISI_ECO_MODE_DISABLE          (0)
-
 struct hi6421_spmi_pmic {
        struct resource                         *res;
        struct device                           *dev;
@@ -29,21 +26,4 @@ struct hi6421_spmi_pmic {
        struct regmap                           *regmap;
 };
 
-enum hi6421_spmi_pmic_irq_list {
-       OTMP = 0,
-       VBUS_CONNECT,
-       VBUS_DISCONNECT,
-       ALARMON_R,
-       HOLD_6S,
-       HOLD_1S,
-       POWERKEY_UP,
-       POWERKEY_DOWN,
-       OCP_SCP_R,
-       COUL_R,
-       SIM0_HPD_R,
-       SIM0_HPD_F,
-       SIM1_HPD_R,
-       SIM1_HPD_F,
-       PMIC_IRQ_LIST_MAX,
-};
 #endif         /* __HISI_PMIC_H */