[PATCH 0/5] sysfs: introduce and use macro BIN_ATTR_ADMIN_WO()
Thomas Weißschuh
linux at weissschuh.net
Tue Dec 3 06:00:35 AEDT 2024
For the bin_attribute constification effort it is useful to have
BIN_ATTR_ADMIN_WO() macro.
Introduce it and switch over all places in the tree which can make use
of it.
While at it also constify the bin_attribute callback parameters.
This series is meant to be applied through the driver core tree.
Signed-off-by: Thomas Weißschuh <linux at weissschuh.net>
---
Thomas Weißschuh (5):
sysfs: add macro BIN_ATTR_ADMIN_WO()
s390/sclp_config: use BIN_ATTR_ADMIN_WO() for bin_attribute definition
powerpc/powernv/flash: Use BIN_ATTR_ADMIN_WO() for bin_attribute definition
firmware: google: gsmi: Use BIN_ATTR_ADMIN_WO() for bin_attribute definition
scsi: arcmsr: Use BIN_ATTR_ADMIN_WO() for bin_attribute definitions
arch/powerpc/platforms/powernv/opal-flash.c | 14 ++----
drivers/firmware/google/gsmi.c | 17 +++----
drivers/s390/char/sclp_config.c | 16 ++-----
drivers/scsi/arcmsr/arcmsr_attr.c | 73 ++++++++++-------------------
include/linux/sysfs.h | 6 +++
5 files changed, 49 insertions(+), 77 deletions(-)
---
base-commit: e70140ba0d2b1a30467d4af6bcfe761327b9ec95
change-id: 20241125-sysfs-const-bin_attr-admin_wo-9d466ff7eb42
Best regards,
--
Thomas Weißschuh <linux at weissschuh.net>
More information about the Linuxppc-dev
mailing list