powerpc/secvar: Handle format string in the consumer
authorRussell Currey <ruscur@russell.cc>
Fri, 10 Feb 2023 08:03:42 +0000 (19:03 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 12 Feb 2023 11:12:37 +0000 (22:12 +1100)
commitec2f40bd004b4b9142469282d4a6ce9afa22f9c0
tree7d36e3f86fab7c414a52d32e6aee2e88145ac570
parent16943a2faf94ef671e60c7577511c0d119fbdfc8
powerpc/secvar: Handle format string in the consumer

The code that handles the format string in secvar-sysfs.c is entirely
OPAL specific, so create a new "format" op in secvar_operations to make
the secvar code more generic.  No functional change.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230210080401.345462-8-ajd@linux.ibm.com
arch/powerpc/include/asm/secvar.h
arch/powerpc/kernel/secvar-sysfs.c
arch/powerpc/platforms/powernv/opal-secvar.c