History

mfd: rk808: Reduce shutdown duplication

Rather than having 3 almost-identical functions plus the machinery to keep track of them, it's far simpler to just dynamically select the appropriate register field per variant.

Robin Murphy committed 6 years ago

Commit 7a52cbc1 parent 90df3a82 files · +20 −42Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mfd/rk808.h+0−1
@@ -620,7 +620,6 @@ struct rk808 { · 619 unmodified lines
620 long variant;620 long variant;
621 const struct regmap_config *regmap_cfg;621 const struct regmap_config *regmap_cfg;
622 const struct regmap_irq_chip *regmap_irq_chip;622 const struct regmap_irq_chip *regmap_irq_chip;
623 void (*pm_pwroff_fn)(void);
624 void (*pm_pwroff_prep_fn)(void);623 void (*pm_pwroff_prep_fn)(void);
625};624};
626#endif /* __LINUX_REGULATOR_RK808_H */625#endif /* __LINUX_REGULATOR_RK808_H */