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. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
90df3a8230
commit
7a52cbccee
2 changed files with 20 additions and 42 deletions
|
|
@ -620,7 +620,6 @@ struct rk808 {
|
|||
long variant;
|
||||
const struct regmap_config *regmap_cfg;
|
||||
const struct regmap_irq_chip *regmap_irq_chip;
|
||||
void (*pm_pwroff_fn)(void);
|
||||
void (*pm_pwroff_prep_fn)(void);
|
||||
};
|
||||
#endif /* __LINUX_REGULATOR_RK808_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue