Re: [PATCH v2 3/3] hwmon: (sysfs) Allow drivers to register const attributes
[email protected] Thu, 06 Aug 2026 06:16:30 +0000
| Newsgroups | org.kernel.vger.linux-hwmon |
|---|---|
| Message-ID | <[email protected]> |
> Switch to the __DEVICE_ATTR() macro which can handle callbacks taking > both const and non-const attribute structure arguments. > Allow the step-wise migration of the drivers. > > Also use container_of_const() over container_of() to avoid casting away > the constness accidentally. > > Signed-off-by: Thomas Weißschuh <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3