Skip to contentSkip to conversation

MFD: Clearing events requires event registers to be writable for da9052-core

PATCH Applied Ashish Jangam 2 participants 2 messages Jan 3, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MFD: Clearing events requires event registers to be writable for da9052-core

---
 drivers/mfd/da9052-core.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/mfd/da9052-core.c +4 -0
index a7c115c..1876aa9 100644
@@ -172,6 +172,10 @@ static bool da9052_reg_writeable(struct device *dev, unsigned int reg)
 {
 	switch (reg) {
 	case DA9052_PAGE0_CON_REG:
+	case DA9052_EVENT_A_REG:
+	case DA9052_EVENT_B_REG:
+	case DA9052_EVENT_C_REG:
+	case DA9052_EVENT_D_REG:
 	case DA9052_IRQ_MASK_A_REG:
 	case DA9052_IRQ_MASK_B_REG:
 	case DA9052_IRQ_MASK_C_REG: