From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795645088; b=asbDQpAq/i2SOIqaHFnKpnuMAsza8S/DlY5QPInyHOc6oca243P9NmifsMVHiC+JK/Fy Gx0mZDRoY+bGs3Xx1N0qnkUBGyV0jO3t6UtwZfDM+3vVoNp4piWnbkkkAcrEmwhTOeqMX GKFtiaooyjtq9UsYjdi3Y18X9pT4nlvZbakvtXFP2FKGCUYa/5oN2ityoJ367TTOn80fQ 0vW4L6Pmv5gYKREQiKBLAzefhytp+cAJkUMvog/KiTEnCR1Vmv7UJgaTlsb1lUcU2dzcP iloKJwbaPdyKNjuzuLCzp9txigGg0vlcltkRkSBLW1LE+i1qtGs86b6uA0J3Faw5qgQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795645088; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=kKJiwYR+cu5mrPZf9A39ckCZmDdoMlP8HFoXJiTcA30=; b=gdxZZvLhktRG1oAzK2YF3511V8AkxmkSfCYRH9GT0jhR+wCCS1TuLoQEfyTn4ZSHOdEK /MmsVIgVxgv+tXkT0fk0izxxK22olFa9GqpbLmN3LHr9xtWyn+4GlhQm5FO50FY+ft2MZ Vmxi+J1EZk0x+Y4wa93G9c+v7NbvyLq3SrKChEo00qqjNHDMk99QlgIzhLc4YGelNZ4JV jgg2pmZsxKyn6SuM598E8iZsMN5ggS8V8Bj3m8S8HT5KutAj6IMX3aYBXfN6aqpn6/JlV 2drmZn2bgQqt7zZ0EOMVdLt80QQoEW8KHPWWnEPpQ0UqwGvI93VFdAYNkjEGx8h5qAw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZVY8mCqs; arc=none smtp.remote-ip=74.125.82.180 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89963606A32A for ; Wed, 25 Nov 2026 22:18:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 89963606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZVY8mCqs Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-385c497bf94so3951082eec.1 for ; Wed, 25 Nov 2026 14:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795645088; x=1796249888; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kKJiwYR+cu5mrPZf9A39ckCZmDdoMlP8HFoXJiTcA30=; b=ZVY8mCqsBddZObOYIXIcss49XEgjhI0oEJgatBFM7cmxjhdOEXS0El9GvbTlT0WULY 9i2iWLH1dX0WdE5V15u8Y4JibImKiTs2g5oByUP+osAHP7L/fWW+xEOrLbgycTHKuGYN FxCzpaN8287ZRGpFtnYy51KJ7IiSKqSMTab4JYPsyAQIjBNj3BJTCIYvSWKmN1OtGz0f GMaPnJELkgByGFo2IQNiPGsRHGwMAE22xqRkfijG4eMPE4GTi0lu/k4RzAqDjxeYPS98 +TvkzDW9yo0zD66xDNH3QS9yE1fDmz6W/TAlYCxHkAkDWzR9Z96Cv+Y6AIwSODhHt6+/ G00w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795645088; x=1796249888; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kKJiwYR+cu5mrPZf9A39ckCZmDdoMlP8HFoXJiTcA30=; b=m2j99N14ppZIMsQmc2hhG4VsDfJ7ySWBgL45EpA1BdLjI74XORvkWgfgwJUHQJrCbu xXh4xlZ1931VM+tAs0ZkrLN9Yfd+9zWQTIBfqRRMZ5wtLWxJGII/Rq5hNOBUwu35T7C3 q7lHjOlsYfnMEAhHJgsmu0QILucoKc5ZoenzOGuok9URTwvDpBQY+L1S4Ja7IuvEFnyf D+PCZxSABnvmo+z/Vrrs6wK13SYAWtLxiFe1nOb7gypVzu1D+OpMllcoHbrcLM2fvgUG IWdaiyXjEtF77XPedSwO0zT+Zreh7PGoEws3kZ/hCxHEcpbWcET5M5yK+xUoMt3YnmIo ds3g== X-Forwarded-Encrypted: i=1; AL+hErHWft35s/Inm2Lv9CU+bGToPN6epbCQQUB5U/4NaUKcEdRkODLGWNiW8xDGiJW1/JHgnD1UGJWvuOY=@vger.kernel.org X-Gm-Message-State: APuU4Z8wi4a1dJEh52XXnTHd9lIp3I4rqMwp2DiXQiejBvnsQI2FaAzW WLFDUIwoyFZCFZmKOITjUDjA0AZvlGa6qJi+EsPOinyvMDk7Zk1xWq3L X-Gm-Gg: AZFdTZf65N1gVGdGAO+fKhpeiSapSQuac+uSjAp9SxL3BZA6cnQsBh0DqvWkqQGZA/y PcCcsmQzhBaErNxhy8egxCY20mZh6HfzuYR83TUosU03kI6qopNhc5spvw9khlr4lTBC0wuEkdc mh3QWN4AZWgLH+yAKjK/1gAlZGZD6nKTU3vz8RNzeNTvRXrsd9JzERypq+rPZl2h5hcu4T8J26U Nq9o4BO7JobkmCTbf1pDOB2PujB2ylknycHhvRJ2vz1fcx8X/oCnQvkmphf5x15ju8Av3OH7HY4 cbds0geS5KG0Cgq25HnFFzfirmtzOigo2qHWL8ywaQJIQFc8TeS9iTEUOypD+l+OxVQKWrREqMM nNbtKdgfzSnT4FookeR0b11Ya4577hXGpEVdewntC+K81BHDX5ZRVrVhmlw6svCaxN3AB+VrlU1 ZFz2cZPTIcLSXVR3GZWuBx102k4+Q7M4p58e9Ehiamx2droMxjnj0mji4cenHHXWYWgRmTyN7IZ QHIT4ciylQ5Gq+etAqMntn1+W2ZT4Jr7T5DYNnBiNs1fHp3/qU57AnXkzhTSroKSUZTY4YVDagw +6OcnKjpfRfvM6q0OaB1 X-Received: by 2002:a05:7301:3a82:b0:374:ea35:9069 with SMTP id 5a478bee46e88-3856fb67380mr18010876eec.39.1795645087464; Wed, 25 Nov 2026 14:18:07 -0800 (PST) Received: from a1-free ([2603:c021:8021:f000:0:1865:8c38:18fc]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e99fdsm69581357eec.5.2026.11.25.14.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 14:18:06 -0800 (PST) From: TAKANO Mitsuhiro To: Jonathan Corbet , linux-doc@vger.kernel.org Cc: Shuah Khan , Randy Dunlap , Mauro Carvalho Chehab , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Vadim Pasternak , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, TAKANO Mitsuhiro Subject: [PATCH v2 2/3] docs: ABI: hid-lenovo-go: Point one entry at the top-level attribute Date: Wed, 25 Nov 2026 22:17:57 +0000 Message-ID: <20261125221758.2535044-3-takano32@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261125221758.2535044-1-takano32@gmail.com> References: <20261125221758.2535044-1-takano32@gmail.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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/-:./::./right_handle/protocol_version +What: /sys/bus/usb/devices/-:./::./protocol_version Date: April 2026 Contact: linux-input@vger.kernel.org Description: This displays the protocol version of the internal MCU. -- 2.53.0