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
88 #define __MFD_MT6397_CORE_H__
99
1010 #include <linux/mutex.h>
11+#include <linux/notifier.h>
1112
1213 enum chip_id {
1314 MT6323_CHIP_ID = 0x23,
@@ -54,6 +55,7 @@ enum mt6397_irq_numbers { · 40 unmodified lines
5455 struct mt6397_chip {
5556 struct device *dev;
5657 struct regmap *regmap;
58+ struct notifier_block pm_nb;
5759 int irq;
5860 struct irq_domain *irq_domain;
5961 struct mutex irqlock;