From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796345978; b=2E4ly2GN1jsgSRxd8FnasxNP26StmuO2/Q0yUOordXma7UVDj0sBfytRSWu345IvwLRj cnhel3SjrK6xP6pAdKAi4vQMnPuwgKOnMnTV16yrawWQulPTzhMa6+dQ8KbLZ+w3NMLlX i+sDaxevJU7Pea9j290/9Z9k1QrM0NOWXhyH/U6Bj2KmNL5Iy19kmF1X9PLnkaaucdm9D Qnji18wd/3BFQmgjg8g7FJdg8Uinrn5bXvxPvES8SXkWdHK3oYZla3e6eUKOGwZZ7I0v3 unLlKzVh1jSDv2VJCqPIIdbL/2QoBgRu8lAD+bVFs/JX1IGnRJvQaQBvsEzjqHJA39A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796345978; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=kxSEf5q/wvrfsdTUykFkDGm7ei34NXGM1U8X2TkikD8=; b=YIvnoGgdip/k5rXYd0qii7wOa4BXc3JzeF9SOSZMzvTDlpqh6zgFm4VoUlEKOvYNbrxE Ua3vo0qtbS3vUut292SpSB3GbiJRLd5uUl2C3MeSl2C3u6kIHqg+9HPZjZsDN5xOU91FY egBgkwbtv1AucvEHu55gSyWRuy5lQq8BbSg2Bn8HRjDgpu24u30pRFKYC2Gk6GGpdYxRY dTWJ9fubwtcz0gpCEYY2lQe9JmBf6oIuLY3LsIP5h0jBwvwPpksQUhHoVgxS2zOyRUD67 xR7vrb40FO3+6TMP7SGcQI6BSK/ckC63JhZfQVFc9N59dAeoFoHUvX+Jk17MZbA906A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=V+SNt5mn; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02D54606A680; Fri, 4 Dec 2026 00:59:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 02D54606A680 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=V+SNt5mn DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=kxSEf5q/wvrfsdTUykFkDGm7ei34NXGM1U8X2TkikD8=; b=V+SNt5mnjkE+ybLMbM29YMs6m1 Y6b1Px/1eZVlVF925WvEi6uSw2HrOas/ut2fHlvK8iNlG356gBhDcR1N2e+TMMcEI9WzFa5E+bmP7 LBHrh01Dul1X/LClBD+Nr7I15/Bcv5cCBqMtJWFBeqg0ETfM1AfELAnsQgyWZ/qr34QN5jA+8upcq RRcp6+YFDAWeczRgw9WO7VFTtS2ammW1g2v7ZOOmgKhkPKGT4EsE744c6JC3biu4BqAN1aGVi06V0 Pcy4fjAr/YDcGrzbEJGW9lcwcObXmBmkp3f24f7/AZsXRCm2qWBiZJ9t6Mz91WypbKVvuphcIfoAd I+2iGASA==; Received: from [50.53.43.113] (helo=[192.168.254.34]) by bombadil.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZHeD-0000000GI3G-1xnR; Fri, 04 Dec 2026 00:59:37 +0000 Message-ID: <613ae587-d842-46cf-a5d7-3ad4d91857f2@infradead.org> Date: Thu, 3 Dec 2026 16:59:37 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] docs: ABI: hid-lenovo-go: Point one entry at the top-level attribute To: TAKANO Mitsuhiro , Jonathan Corbet , linux-doc@vger.kernel.org Cc: Shuah Khan , Mauro Carvalho Chehab , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Vadim Pasternak , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261125221758.2535044-1-takano32@gmail.com> <20261125221758.2535044-3-takano32@gmail.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20261125221758.2535044-3-takano32@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/25/26 2:17 PM, TAKANO Mitsuhiro wrote: > 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 Acked-by: Randy Dunlap Tested-by: Randy Dunlap Thanks. > --- > 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. -- ~Randy