summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-06-16 06:40:55 +0200
committerDarren Hart (VMware) <dvhart@infradead.org>2017-06-30 20:13:04 -0700
commitc1f51f1c4906f2551e21451228dcbb3b9dfc7008 (patch)
treecb7b615366cb248185e85dd8ce8d871d1d7942e0 /drivers/platform
parentd6a298aea319c794fd7ae976836fe5f71a649407 (diff)
platform/x86: fujitsu-laptop: sanitize hotkey input device identification
In the case of brightness-related FUJ02B1 ACPI device, initializing the input device associated with it identically as acpi-video initializes its input device makes sense. However, using the same data for the input device associated with the FUJ02E3 ACPI device makes little sense, because the latter has nothing to do with video and assigning an arbitrary product ID to it is redundant. Signed-off-by: Michał Kępień <kernel@kempniu.pl> Reviewed-by: Jonathan Woithe <jwoithe@just42.net> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/fujitsu-laptop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
index b4e7a93c9877..c01b8ed99478 100644
--- a/drivers/platform/x86/fujitsu-laptop.c
+++ b/drivers/platform/x86/fujitsu-laptop.c
@@ -557,13 +557,12 @@ static int acpi_fujitsu_laptop_input_setup(struct acpi_device *device)
if (!priv->input)
return -ENOMEM;
- snprintf(priv->phys, sizeof(priv->phys), "%s/video/input0",
+ snprintf(priv->phys, sizeof(priv->phys), "%s/input0",
acpi_device_hid(device));
priv->input->name = acpi_device_name(device);
priv->input->phys = priv->phys;
priv->input->id.bustype = BUS_HOST;
- priv->input->id.product = 0x06;
dmi_check_system(fujitsu_laptop_dmi_table);
ret = sparse_keymap_setup(priv->input, keymap, NULL);