diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/input/touchscreen/ar1021_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ar1021_i2c.c b/drivers/input/touchscreen/ar1021_i2c.c index 21c74ee59341..f9dcbd63e598 100644 --- a/drivers/input/touchscreen/ar1021_i2c.c +++ b/drivers/input/touchscreen/ar1021_i2c.c | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | * License: GPLv2 as published by the FSF. | 6 | * License: GPLv2 as published by the FSF. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include <linux/bitops.h> | ||
| 9 | #include <linux/module.h> | 10 | #include <linux/module.h> |
| 10 | #include <linux/input.h> | 11 | #include <linux/input.h> |
| 11 | #include <linux/of.h> | 12 | #include <linux/of.h> |
| @@ -42,7 +43,7 @@ static irqreturn_t ar1021_i2c_irq(int irq, void *dev_id) | |||
| 42 | goto out; | 43 | goto out; |
| 43 | 44 | ||
| 44 | /* sync bit set ? */ | 45 | /* sync bit set ? */ |
| 45 | if ((data[0] & 0x80) == 0) | 46 | if (!(data[0] & BIT(7))) |
| 46 | goto out; | 47 | goto out; |
| 47 | 48 | ||
| 48 | button = data[0] & BIT(0); | 49 | button = data[0] & BIT(0); |
