summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-06-12 04:05:38 +0200
committerTom Rini <[email protected]>2026-06-29 15:29:44 -0600
commitd5046398433e48e7b0b664c1ee3e4e2af6f861a8 (patch)
tree571f8cf78a888d523b597261385e62aadb88ad68 /test
parent4a0990218aa9185c2ccd7986dc1ad14b24aaaa9d (diff)
treewide: Staticize and constify acpi ops
Set the acpi_ops structure as static const where applicable. The The structure is not accessible from outside of drivers and is not going to be modified at runtime. The structure may be unused in a couple of drivers depending on their configuration, mark those sites with __maybe_unused . Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/dm/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/acpi.c b/test/dm/acpi.c
index 2de7983f9ae..293ea0274b5 100644
--- a/test/dm/acpi.c
+++ b/test/dm/acpi.c
@@ -136,7 +136,7 @@ static int testacpi_inject_dsdt(const struct udevice *dev, struct acpi_ctx *ctx)
return 0;
}
-struct acpi_ops testacpi_ops = {
+static const struct acpi_ops testacpi_ops = {
.get_name = testacpi_get_name,
.write_tables = testacpi_write_tables,
.fill_madt = testacpi_fill_madt,