Some pmics don't need backup interrupt settings, so we change to use pm notifier for the pmics which are necessary to store settings.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #define __MFD_MT6397_CORE_H__ |
| 9 | 9 | |
| 10 | 10 | #include <linux/mutex.h> |
| 11 | +#include <linux/notifier.h> | |
| 11 | 12 | |
| 12 | 13 | enum chip_id { |
| 13 | 14 | MT6323_CHIP_ID = 0x23, |
| @@ -54,6 +55,7 @@ enum mt6397_irq_numbers { · 40 unmodified lines | ||
| 54 | 55 | struct mt6397_chip { |
| 55 | 56 | struct device *dev; |
| 56 | 57 | struct regmap *regmap; |
| 58 | + struct notifier_block pm_nb; | |
| 57 | 59 | int irq; |
| 58 | 60 | struct irq_domain *irq_domain; |
| 59 | 61 | struct mutex irqlock; |