All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "TAKANO Mitsuhiro" <takano32@gmail.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH 2/3] docs: ABI: hid-lenovo-go: Point one entry at the version group
Date: Wed, 25 Nov 2026 19:11:54 +0000	[thread overview]
Message-ID: <sashiko-outbox-234036@kernel.org> (raw)
In-Reply-To: <20261125190742.2420486-2-takano32@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] docs: ABI: hid-lenovo-go: internal MCU protocol_version uses
  nonexistent path
--

commit 59c6e641f7a91e766d489a67c548d903d75c5b71
Author: TAKANO Mitsuhiro <takano32@gmail.com>

docs: ABI: hid-lenovo-go: Point one entry at the version group

This commit updates the sysfs ABI path for the internal MCU
protocol_version attribute to avoid a duplicate right_handle/protocol_version
entry in Documentation/ABI/testing/sysfs-driver-hid-lenovo-go.

> diff --git a/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go b/Documentation/ABI/testing/sysfs-driver-hid-lenovo-go
> index c8221373ef76a..ed8d9a35b8ca4 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>/version/protocol_version
>  Date:		April 2026
>  Contact:	linux-input@vger.kernel.org
>  Description:	This displays the protocol version of the internal MCU.

[Severity: Low]
Should this path be top-level .../protocol_version without the version/
subdirectory?

In LEGO_DEVICE_ATTR_RO(_name, _attrname, _dtype, _group), the fourth
argument selects the _group##_show() callback prefix (version_show()), not
a sysfs attribute group name.  dev_attr_version_protocol_mcu.attr is added
to mcu_attr_group, which has no .name field, so protocol_version is
exposed directly in the HID device top-level directory alongside
product_version and firmware_version:

drivers/hid/hid-lenovo-go.c:
    ...
	&dev_attr_version_product_mcu.attr,
	&dev_attr_version_protocol_mcu.attr,
	NULL,
};

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

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125190742.2420486-1-takano32@gmail.com?part=2

  reply	other threads:[~2026-11-25 19:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 19:07 [PATCH 1/3] docs: python: abi_parser: Detect a symbol repeated on one file TAKANO Mitsuhiro
2026-11-25 19:07 ` [PATCH 2/3] docs: ABI: hid-lenovo-go: Point one entry at the version group TAKANO Mitsuhiro
2026-11-25 19:11   ` sashiko-bot [this message]
2026-11-25 19:07 ` [PATCH 3/3] docs: ABI: mlxreg-io: Drop the second shutdown_unlock entry TAKANO Mitsuhiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-234036@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=takano32@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.