Input: serio - add firmware_id sysfs attribute
authorHans de Goede <hdegoede@redhat.com>
Sun, 20 Apr 2014 03:39:35 +0000 (20:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Apr 2014 05:42:19 +0000 (22:42 -0700)
commit0456c66f4e905e1ca839318219c770988b47975c
treeaf2bb0303cf147082a8f62e6fdee6620dc6b7dad
parent38a1807badd26d413e8f2b0393a0c5bfdf9e912b
Input: serio - add firmware_id sysfs attribute

serio devices exposed via platform firmware interfaces such as ACPI may
provide additional identifying information of use to userspace.

We don't associate the serio devices with the firmware device (we don't
set it as parent), so there's no way for userspace to make use of this
information.

We cannot change the parent for serio devices instantiated though a
firmware interface as that would break suspend / resume ordering.

Therefore this patch adds a new firmware_id sysfs attribute so that
userspace can get a string from there with any additional identifying
information the firmware interface may provide.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/serio.c
include/linux/serio.h
This page took 0.041874 seconds and 5 git commands to generate.