[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241202-sysfs-const-bin_attr-admin_wo-v1-0-f489116210bf@weissschuh.net>
Date: Mon, 02 Dec 2024 20:00:35 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Heiko Carstens <hca@...ux.ibm.com>, Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>, Michael Ellerman <mpe@...erman.id.au>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Naveen N Rao <naveen@...nel.org>, Madhavan Srinivasan <maddy@...ux.ibm.com>,
Tzung-Bi Shih <tzungbi@...nel.org>, Brian Norris <briannorris@...omium.org>,
Julius Werner <jwerner@...omium.org>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, chrome-platform@...ts.linux.dev,
linux-scsi@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/5] sysfs: introduce and use macro BIN_ATTR_ADMIN_WO()
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@...ssschuh.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@...ssschuh.net>
Powered by blists - more mailing lists