Commit b1ccbdc4 authored by Mike Rapoport's avatar Mike Rapoport Committed by Samuel Ortiz

mfd: fix event masking for da9030

Signed-off-by: default avatarMike Rapoport <mike@compulab.co.il>
Acked-by: default avatarEric Miao <eric.miao@marvell.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent 77fb61a0
...@@ -267,7 +267,7 @@ static int da9030_mask_events(struct da903x_chip *chip, unsigned int events) ...@@ -267,7 +267,7 @@ static int da9030_mask_events(struct da903x_chip *chip, unsigned int events)
{ {
uint8_t v[3]; uint8_t v[3];
chip->events_mask &= ~events; chip->events_mask |= events;
v[0] = (chip->events_mask & 0xff); v[0] = (chip->events_mask & 0xff);
v[1] = (chip->events_mask >> 8) & 0xff; v[1] = (chip->events_mask >> 8) & 0xff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment