]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 28 Dec 2024 08:43:41 +0000 (09:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 09:43:58 +0000 (10:43 +0100)
commit3675a926feefdf3afabea12f806f31ea582065e5
treef9ab121c881b3e5b4c82f59db27996220a5af07e
parent92d6254f58120011c93610b4cb7def214409731d
sysfs: constify bin_attribute argument of sysfs_bin_attr_simple_read()

Most users use this function through the BIN_ATTR_SIMPLE* macros,
they can handle the switch transparently.
Also adapt the two non-macro users in the same change.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Tested-by: Aditya Gupta <adityag@linux.ibm.com>
Link: https://lore.kernel.org/r/20241228-sysfs-const-bin_attr-simple-v2-1-7c6f3f1767a3@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/opal.c
fs/sysfs/file.c
include/linux/sysfs.h
kernel/module/sysfs.c