aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/powernv/opal-flash.c
diff options
context:
space:
mode:
authorRohan McLure <[email protected]>2022-03-08 10:14:14 +1100
committerMichael Ellerman <[email protected]>2022-03-08 22:15:32 +1100
commit6b3a3e12f8e6eea47428bb39aaf58832b50bb379 (patch)
tree0f38c62d684a4f16fa4cfa0f70dedab6244b2785 /arch/powerpc/platforms/powernv/opal-flash.c
parent5986f6b6575ac830ede9648cfb64353c58067a9f (diff)
powerpc: declare unmodified attribute_group usages const
Inspired by (bd75b4ef4977: Constify static attribute_group structs), accepted by linux-next, reported: https://patchwork.ozlabs.org/project/linuxppc-dev/patch/[email protected]/ Nearly all singletons of type struct attribute_group are never modified, and so are candidates for being const. Declare them as const. Signed-off-by: Rohan McLure <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-flash.c')
-rw-r--r--arch/powerpc/platforms/powernv/opal-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-flash.c b/arch/powerpc/platforms/powernv/opal-flash.c
index 7e7d38b17420..18481a8c52fa 100644
--- a/arch/powerpc/platforms/powernv/opal-flash.c
+++ b/arch/powerpc/platforms/powernv/opal-flash.c
@@ -512,7 +512,7 @@ static struct attribute *image_op_attrs[] = {
NULL /* need to NULL terminate the list of attributes */
};
-static struct attribute_group image_op_attr_group = {
+static const struct attribute_group image_op_attr_group = {
.attrs = image_op_attrs,
};