]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sysfs: constify bin_attribute argument of bin_attribute::read/write()
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 13 Mar 2025 15:57:45 +0000 (16:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 16:45:32 +0000 (18:45 +0200)
commit97d06802d10a2827ef46fd31789a26117ce7f3d9
tree9a7279c3cc546a43a6a36f48f3957402ae12d026
parent31e4e12e0e9609850cefd4b2e1adf782f56337d6
sysfs: constify bin_attribute argument of bin_attribute::read/write()

All callback implementers have been moved to the const variant of the
callbacks. The signature of the original callbacks can now be changed.
Also remove the now unnecessary transition machinery inside __BIN_ATTR().

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250313-sysfs-const-bin_attr-final-v2-1-96284e1e88ce@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sysfs.h