]> git.baikalelectronics.ru Git - kernel.git/commit
HID: expose country code in sysfs
authorOlivier Gay <ogay@logitech.com>
Tue, 17 Feb 2015 13:00:03 +0000 (14:00 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 23 Feb 2015 15:17:32 +0000 (16:17 +0100)
commit99be9afc36064a4c3c98e6dbd7c5f41b6a600f3c
treee08d875df128ba23fc9c1d3bd81ca0df75a724a8
parent54a3ca50695015d9adcc6b58662e7e88933bde43
HID: expose country code in sysfs

This commit exposes in sysfs the HID country code that is stored in the country
member of hid_device structure. It identifies the country code of localized
hardware.

For example some keyboards use it to exhibit the language of the key layout. It
helps the upper layer to identify the localized hardware and setup the correct
language to use.

For USB HID devices the country code comes for the HID descriptor and for
Bluetooth HID devices it is the HIDCountryCode attribute from the SDP database.

Signed-off-by: Olivier Gay <ogay@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/ABI/testing/sysfs-driver-hid
drivers/hid/hid-core.c