diff options
author | Olivier Gay <ogay@logitech.com> | 2015-02-17 08:00:03 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-02-23 10:17:32 -0500 |
commit | a877417ed4368b51f57e879b52793260981ddcaa (patch) | |
tree | e08d875df128ba23fc9c1d3bd81ca0df75a724a8 /Documentation/ABI | |
parent | 870fd0f5df4e131467612cc46db46fc3b69fd706 (diff) |
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-driver-hid | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-hid b/Documentation/ABI/testing/sysfs-driver-hid index b6490e14fe83..48942cacb0bf 100644 --- a/Documentation/ABI/testing/sysfs-driver-hid +++ b/Documentation/ABI/testing/sysfs-driver-hid | |||
@@ -8,3 +8,13 @@ Description: When read, this file returns the device's raw binary HID | |||
8 | report descriptor. | 8 | report descriptor. |
9 | This file cannot be written. | 9 | This file cannot be written. |
10 | Users: HIDAPI library (http://www.signal11.us/oss/hidapi) | 10 | Users: HIDAPI library (http://www.signal11.us/oss/hidapi) |
11 | |||
12 | What: For USB devices : /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/country | ||
13 | For BT devices : /sys/class/bluetooth/hci<addr>/<hid-bus>:<vendor-id>:<product-id>.<num>/country | ||
14 | Symlink : /sys/class/hidraw/hidraw<num>/device/country | ||
15 | Date: February 2015 | ||
16 | KernelVersion: 3.19 | ||
17 | Contact: Olivier Gay <ogay@logitech.com> | ||
18 | Description: When read, this file returns the hex integer value in ASCII | ||
19 | of the device's HID country code (e.g. 21 for US). | ||
20 | This file cannot be written. | ||