Input: serio - add firmware_id sysfs attribute
authorHans de Goede <hdegoede@redhat.com>
Sun, 20 Apr 2014 03:39:35 +0000 (20:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:19 +0000 (10:28 -0700)
commitbca4529f141352f6de2f66a2772c86b30b6cfaea
tree69c01c9c7acd9903fd6c1ce1564e2d170e25934b
parent3b13d52c662b61444fe5c5b6f5bb9e549017054e
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/serio/serio.c
include/linux/serio.h