From: sashiko-bot@kernel.org
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH 3/3] hwmon: (sysfs) Allow drivers to register const attributes
Date: Wed, 05 Aug 2026 20:07:54 +0000 [thread overview]
Message-ID: <20260805200755.588371F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260805-sysfs-const-attr-hwmon-v1-3-4c0cb2b290a1@weissschuh.net>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The commit message incorrectly states that the patch switches to the `__DRIVER_ATTR()` macro, while the code actually switches to the `__DEVICE_ATTR()` macro.
--
--- Patch [3]: [PATCH 3/3] hwmon: (sysfs) Allow drivers to register const attributes ---
commit 91e4cdd2e4ad9f4eaa7572f21133759d5e925d9e
Author: Thomas Weißschuh <linux@weissschuh.net>
hwmon: (sysfs) Allow drivers to register const attributes
This commit updates the hwmon-sysfs macros to use container_of_const() and
__DEVICE_ATTR(). This change supports callbacks taking both const and
non-const attribute arguments, allowing for a step-wise migration of drivers.
> Switch to the __DRIVER_ATTR() macro which can handle callbacks taking
> both const and non-const attribute structure arguments.
[Severity: Low]
This isn't a bug, but the commit message states the patch switches to the
__DRIVER_ATTR() macro. However, the code actually switches to the
__DEVICE_ATTR() macro:
include/linux/hwmon-sysfs.h:SENSOR_ATTR()
{ .dev_attr = __DEVICE_ATTR(_name, _mode, _show, _store),
Could the commit message be updated to accurately reflect the macro used in
the code?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260805-sysfs-const-attr-hwmon-v1-0-4c0cb2b290a1@weissschuh.net?part=3
next prev parent reply other threads:[~2026-08-05 20:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 19:04 [PATCH 0/3] hwmon: Handle const struct attributes Thomas Weißschuh
2026-08-05 19:04 ` [PATCH 1/3] hwmon: (core) Constify device attributes Thomas Weißschuh
2026-08-05 20:08 ` sashiko-bot
2026-08-05 19:04 ` [PATCH 2/3] hwmon: (core) Use const APIs for the dynamically allocated sysfs attributes Thomas Weißschuh
2026-08-05 20:05 ` sashiko-bot
2026-08-05 19:04 ` [PATCH 3/3] hwmon: (sysfs) Allow drivers to register const attributes Thomas Weißschuh
2026-08-05 20:07 ` sashiko-bot [this message]
2026-08-05 21:20 ` Guenter Roeck
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=20260805200755.588371F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=sashiko-reviews@lists.linux.dev \
/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.