]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of/fdt: Implement use BIN_ATTR_SIMPLE macro for fdt sysfs attribute
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 22 Nov 2024 12:14:00 +0000 (13:14 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 3 Dec 2024 16:52:41 +0000 (10:52 -0600)
commit16ef9c9de0c48b836c5996c6e9792cb4f658c8f1
tree733d3e05a1040c0b93efedd973acf5d044ed5da7
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
of/fdt: Implement use BIN_ATTR_SIMPLE macro for fdt sysfs attribute

The usage of the macro allows to remove the custom handler function,
saving some memory. Additionally the code is easier to read.

While at it also mark the attribute as __ro_after_init, as the only
modification happens in the __init phase.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241122-sysfs-const-bin_attr-of-v1-1-7052f9dcd4be@weissschuh.net
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/fdt.c