]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: serio - add firmware_id sysfs attribute
authorHans de Goede <hdegoede@redhat.com>
Sun, 20 Apr 2014 03:39:35 +0000 (20:39 -0700)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 13:48:31 +0000 (14:48 +0100)
commitd278ba6471641f99eda3b3c76f8414339c9dbed0
tree6c2481515b0940157a29585839533867e911a12a
parentcbe6c8d6575ab39b78589f6083a842b6a9185295
Input: serio - add firmware_id sysfs attribute

commit 0456c66f4e905e1ca839318219c770988b47975c upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/serio/serio.c
include/linux/serio.h