Linux Input Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 2/2] Documentation/ABI/hid-multitouch: add description for {surface,button}_switch sysfs attributes
@ 2020-07-31 22:36 Barnabás Pőcze
  0 siblings, 0 replies; only message in thread
From: Barnabás Pőcze @ 2020-07-31 22:36 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires, linux-input

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(+)

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.
--
2.27.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 22:36 [PATCH 2/2] Documentation/ABI/hid-multitouch: add description for {surface,button}_switch sysfs attributes Barnabás Pőcze

Linux Input Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-input/0 linux-input/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-input linux-input/ https://lore.kernel.org/linux-input \
		linux-input@vger.kernel.org
	public-inbox-index linux-input

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-input


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git