]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/ksysfs.c: simplify bin_attribute definition
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 21 Nov 2024 16:48:47 +0000 (17:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jan 2025 15:59:15 +0000 (16:59 +0100)
commit0f9e1f3a6e1e873bc70c7a47870a18c05647360e
tree585cc52d264d9e06e15f2aa1fa8822044156e2b5
parente1a51c2bf4b3b20868a0e6e9520b11639bd363f1
kernel/ksysfs.c: simplify bin_attribute definition

The notes attribute can be implemented in terms of BIN_ATTR_SIMPLE().
This saves memory at runtime and is a preparation for the constification
of struct bin_attribute.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241121-sysfs-const-bin_attr-ksysfs-v1-1-972faced149d@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/ksysfs.c