staging: mfd: hi6421-spmi-pmic: get rid of unused code
There are some checks there which could make sense for downstream builds, but doesn't make much sense for upstream ones. They came from the official Hikey970 tree from Linaro, but even there, the commented-out code is not set via other Kconfig vars. So, let's just get rid of that. If needed later, this patch can be (partially?) reversed. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/ecbef801f6c32ba0850ad9e5c534a4304807df3b.1597647359.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4524ac56cd
commit
489b1a36b1
@@ -78,7 +78,6 @@ unsigned int get_uv_mntn_status(void);
|
||||
void clear_uv_mntn_resered_reg_bit(void);
|
||||
void set_uv_mntn_resered_reg_bit(void);
|
||||
|
||||
#if defined(CONFIG_HISI_PMIC) || defined(CONFIG_HISI_PMIC_PMU_SPMI)
|
||||
/* Register Access Helpers */
|
||||
u32 hisi_pmic_read(struct hisi_pmic *pmic, int reg);
|
||||
void hisi_pmic_write(struct hisi_pmic *pmic, int reg, u32 val);
|
||||
@@ -90,11 +89,6 @@ int hisi_pmic_array_read(int addr, char *buff, unsigned int len);
|
||||
int hisi_pmic_array_write(int addr, char *buff, unsigned int len);
|
||||
extern int hisi_get_pmic_irq_byname(unsigned int pmic_irq_list);
|
||||
extern int hisi_pmic_get_vbus_status(void);
|
||||
#if defined(CONFIG_HISI_DIEID)
|
||||
u32 hisi_pmic_read_sub_pmu(u8 sid ,int reg);
|
||||
void hisi_pmic_write_sub_pmu(u8 sid ,int reg, u32 val);
|
||||
#endif
|
||||
#else
|
||||
static inline u32 hisi_pmic_read(struct hisi_pmic *pmic, int reg) { return 0; }
|
||||
static inline void hisi_pmic_write(struct hisi_pmic *pmic, int reg, u32 val) {}
|
||||
static inline void hisi_pmic_rmw(struct hisi_pmic *pmic, int reg, u32 mask, u32 bits) {}
|
||||
@@ -107,38 +101,7 @@ static inline int hisi_get_pmic_irq_byname(unsigned int pmic_irq_list) { return
|
||||
static inline int hisi_pmic_get_vbus_status(void) { return 1; }
|
||||
static inline u32 hisi_pmic_read_sub_pmu(u8 sid ,int reg) { return 0; }
|
||||
static inline void hisi_pmic_write_sub_pmu(u8 sid ,int reg, u32 val) {}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HISI_HI6421V500_PMU
|
||||
enum pmic_irq_list {
|
||||
POR_D45MR = 0,
|
||||
VBUS_CONNECT,
|
||||
VBUS_DISCONNECT,
|
||||
ALARMON_R,
|
||||
HOLD_6S,
|
||||
HOLD_1S,
|
||||
POWERKEY_UP,
|
||||
POWERKEY_DOWN,
|
||||
OCP_SCP_R,
|
||||
COUL_R,
|
||||
VSYS_OV,
|
||||
VSYS_UV,
|
||||
VSYS_PWROFF_ABS,
|
||||
VSYS_PWROFF_DEB,
|
||||
THSD_OTMP140,
|
||||
THSD_OTMP125,
|
||||
HRESETN,
|
||||
SIM0_HPD_R = 24,
|
||||
SIM0_HPD_F,
|
||||
SIM0_HPD_H,
|
||||
SIM0_HPD_L,
|
||||
SIM1_HPD_R,
|
||||
SIM1_HPD_F,
|
||||
SIM1_HPD_H,
|
||||
SIM1_HPD_L,
|
||||
PMIC_IRQ_LIST_MAX,
|
||||
};
|
||||
#else
|
||||
enum pmic_irq_list {
|
||||
OTMP = 0,
|
||||
VBUS_CONNECT,
|
||||
@@ -156,10 +119,5 @@ enum pmic_irq_list {
|
||||
SIM1_HPD_F,
|
||||
PMIC_IRQ_LIST_MAX,
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HISI_SR_DEBUG
|
||||
extern void get_ip_regulator_state(void);
|
||||
#endif
|
||||
#endif /* __HISI_PMIC_H */
|
||||
|
||||
|
Reference in New Issue
Block a user