History

mfd: mt6397: Modify suspend/resume behavior

Some pmics don't need backup interrupt settings, so we change to use pm notifier for the pmics which are necessary to store settings.

Hsin-Hsiung Wang committed 6 years ago

Commit 4e2e7cf1 parent 8f3d9f33 files · +36 −31Browse files

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

Unified · Split

include/linux/mfd/mt6397/core.h+2−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
8#define __MFD_MT6397_CORE_H__8#define __MFD_MT6397_CORE_H__
9 9
10#include <linux/mutex.h>10#include <linux/mutex.h>
11#include <linux/notifier.h>
11 12
12enum chip_id {13enum chip_id {
13 MT6323_CHIP_ID = 0x23,14 MT6323_CHIP_ID = 0x23,
@@ -54,6 +55,7 @@ enum mt6397_irq_numbers { · 40 unmodified lines
54struct mt6397_chip {55struct mt6397_chip {
55 struct device *dev;56 struct device *dev;
56 struct regmap *regmap;57 struct regmap *regmap;
58 struct notifier_block pm_nb;
57 int irq;59 int irq;
58 struct irq_domain *irq_domain;60 struct irq_domain *irq_domain;
59 struct mutex irqlock;61 struct mutex irqlock;