From: Mike Rapoport Date: Sat, 8 Nov 2008 00:28:19 +0000 (+0100) Subject: mfd: fix event masking for da9030 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1ccbdc4a2af5ffcd6082c3a7a6fbd0e134031f2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mfd: fix event masking for da9030 Signed-off-by: Mike Rapoport Acked-by: Eric Miao Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c index b57326ae464..0b5bd85dfce 100644 --- a/drivers/mfd/da903x.c +++ b/drivers/mfd/da903x.c @@ -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;