[PATCH v2 2/3] docs: ABI: hid-lenovo-go: Point one entry at the top-level attribute

From: TAKANO Mitsuhiro

Date: Wed Nov 25 2026 - 17:18:11 EST


The protocol_version entry at line 389 describes the internal MCU, but
its path carries a right_handle/ prefix, which is the group the
removable right controller lives in. The entry at line 566 already
uses right_handle/protocol_version for that controller's own attribute,
so two entries claim the same file and abi_parser reports the symbol as
repeated.

The internal MCU attribute is not under a group directory.
LEGO_DEVICE_ATTR_RO() takes its fourth argument as the prefix of the
_show() callback, not as a sysfs group name, and mcu_attr_group has no
.name:

LEGO_DEVICE_ATTR_RO(version_protocol_mcu, "protocol_version",
USB_MCU, version);

static struct attribute *mcu_attrs[] = {
...
&dev_attr_version_product_mcu.attr,
&dev_attr_version_protocol_mcu.attr,
NULL,
};

static const struct attribute_group mcu_attr_group = {
.attrs = mcu_attrs,
};

So the attribute appears directly under the HID device, beside
product_version, and the path loses the prefix.

Signed-off-by: TAKANO Mitsuhiro <takano32@xxxxxxxxx>
---
Changes in v2:
- The documents are fixed before the checker is added, so the tree
does not gain warnings in the middle of the series.
- The internal MCU protocol_version entry points at the top-level
attribute; v1 gave it the prefix of the removable controller's
group, which made it name the same file as that entry.
- The checker keeps its warning for an entry without a file, counts
lines rather than occurrences, and drops an unused loop key.

Documentation/ABI/testing/sysfs-driver-hid-lenovo-go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go b/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go
index c8221373ef76..6ba874913c1e 100644
--- a/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go
+++ b/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go
@@ -386,7 +386,7 @@ Description: This displays the product version of the internal MCU.

Applies to Lenovo Legion Go and Go 2 line of handheld devices.

-What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/right_handle/protocol_version
+What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/protocol_version
Date: April 2026
Contact: linux-input@xxxxxxxxxxxxxxx
Description: This displays the protocol version of the internal MCU.
--
2.53.0