summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-i801.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-05-25 09:37:02 +0200
committerWolfram Sang <wsa@the-dreams.de>2016-06-13 22:32:09 +0200
commita90bc5d9a77a4e0d5e65f69ef56eb40627f50e3e (patch)
tree5d2f10373f0c5edb81091884382a9f0111fece42 /drivers/i2c/busses/i2c-i801.c
parenti2c: Add generic support passing secondary devices addresses (diff)
downloadlinux-a90bc5d9a77a4e0d5e65f69ef56eb40627f50e3e.tar.xz
linux-a90bc5d9a77a4e0d5e65f69ef56eb40627f50e3e.zip
i2c: i801: Drop needless bit-wise OR
The interrupt handling code makes it look like several status values may be merged together before being processed, while this will never happen. Change from bit-wise OR to simple assignment to make it more obvious and avoid misunderstanding. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r--drivers/i2c/busses/i2c-i801.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index 4a60ad214747..b43696394d5b 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -547,7 +547,7 @@ static irqreturn_t i801_isr(int irq, void *dev_id)
status &= SMBHSTSTS_INTR | STATUS_ERROR_FLAGS;
if (status) {
outb_p(status, SMBHSTSTS(priv));
- priv->status |= status;
+ priv->status = status;
wake_up(&priv->waitq);
}