summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/dell-laptop.c
diff options
context:
space:
mode:
authorGiedrius Statkevičius <giedriuswork@gmail.com>2014-10-17 23:57:20 (GMT)
committerDarren Hart <dvhart@linux.intel.com>2014-11-19 17:07:07 (GMT)
commit98280374ff1750acfa582a4575b94f053a29f749 (patch)
treeed33958666ad98949cdf8f2cc463fca2c63171b9 /drivers/platform/x86/dell-laptop.c
parentfc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff)
downloadlinux-98280374ff1750acfa582a4575b94f053a29f749.tar.xz
drivers: platform: change 0x20 to I8042_STR_AUXDATA in i8042 filters
Instead of using a magic constant 0x20 in some drivers to get data only from the KBC port we should use the constant defined in i8042.h with the same value. Also, this makes these drivers uniform with what constant the only other filter function uses in drivers/input/misc/ideapad_slidebar.c. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/dell-laptop.c')
-rw-r--r--drivers/platform/x86/dell-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 233d2ee..60bfc8e 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -564,7 +564,7 @@ static bool dell_laptop_i8042_filter(unsigned char data, unsigned char str,
{
static bool extended;
- if (str & 0x20)
+ if (str & I8042_STR_AUXDATA)
return false;
if (unlikely(data == 0xe0)) {