mfd: fix event masking for da9030
authorMike Rapoport <mike@compulab.co.il>
Sat, 8 Nov 2008 00:28:19 +0000 (01:28 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 16 Nov 2008 18:58:45 +0000 (19:58 +0100)
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/da903x.c

index b57326ae464d4f91f83fce55e412d12f5712effa..0b5bd85dfcec5e4d4bdabfeae15a4a19f19f28ed 100644 (file)
@@ -267,7 +267,7 @@ static int da9030_mask_events(struct da903x_chip *chip, unsigned int events)
 {
        uint8_t v[3];
 
-       chip->events_mask &= ~events;
+       chip->events_mask |= events;
 
        v[0] = (chip->events_mask & 0xff);
        v[1] = (chip->events_mask >> 8) & 0xff;