[2/2] Documentation/ABI/hid-multitouch: add description for {surface,button}_switch sysfs attributes
diff mbox series

Message ID x9Al963GDBPgGb1TfOxsddmqRVUvJ6C6D6VfNkA6YFiRd_6n9cMOdbfpds63rwANYhzdKCSPG5QVpKsKc96CqP1suNhXrJOrwsosvf2j9QU=@protonmail.com
State New
Headers show
Series
  • HID: multitouch: export {surface,button}_switch to sysfs
Related show

Commit Message

Barnabás Pőcze July 31, 2020, 10:36 p.m. UTC
This commit adds description for the {surface,button}_switch sysfs
attributes that are exported by the hid-multitouch driver, and that
may be used to enable/disable certain parts of a touch device.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
---
 .../ABI/testing/sysfs-driver-hid-multitouch     | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

--
2.27.0

Patch
diff mbox series

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-multitouch b/Documentation/ABI/testing/sysfs-driver-hid-multitouch
index f79839d1af37..10c8d427232d 100644
--- a/Documentation/ABI/testing/sysfs-driver-hid-multitouch
+++ b/Documentation/ABI/testing/sysfs-driver-hid-multitouch
@@ -7,3 +7,20 @@  Description:	The integer value of this attribute corresponds to the
 		MT_QUIRKS_* in hid-multitouch.c).
 		When written this attribute change on the fly the quirks, then
 		the protocol to handle the device.
+
+What:		/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/surface_switch
+Date:		July 2020
+Contact:	linux-input@vger.kernel.org
+Description:	The integer value of this attribute corresponds to the state of
+		the device's surface switch. It is 0 if the the surface switch
+		is off, meaning no surface events are reported; otherwise it
+		is 1. Writing to this attribute changes the state of the switch.
+
+
+What:		/sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/button_switch
+Date:		July 2020
+Contact:	linux-input@vger.kernel.org
+Description:	The integer value of this attribute corresponds to the state of
+		the device's button switch. It is 0 if the the button switch
+		is off, meaning no button events are reported; otherwise it
+		is 1. Writing to this attribute changes the state of the switch.