Page MenuHomeFreeBSD

D56818.id177408.diff
No OneTemporary

D56818.id177408.diff

diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -331,8 +331,8 @@
IDX_TO_BIT(function_index)) != 0);
}
-static void acpi_spmc_probe_dsm(struct acpi_spmc_softc *sc,
- ACPI_HANDLE handle, const struct dsm_desc *const dsm);
+static void acpi_spmc_probe_dsm(struct acpi_spmc_softc *const sc,
+ const struct dsm_desc *const dsm);
static void acpi_spmc_dsm_print_functions(
const struct acpi_spmc_softc *const sc,
const struct dsm_desc *const dsm);
@@ -378,7 +378,7 @@
for (int i = 0; i < nitems(dsms); ++i) {
KASSERT(dsms[i] != NULL, ("%s: Sparse dsms[]!", __func__));
- acpi_spmc_probe_dsm(sc, handle, dsms[i]);
+ acpi_spmc_probe_dsm(sc, dsms[i]);
}
if (sc->dsms == 0) {
@@ -461,10 +461,10 @@
}
static void
-acpi_spmc_probe_dsm(struct acpi_spmc_softc *sc, ACPI_HANDLE handle,
+acpi_spmc_probe_dsm(struct acpi_spmc_softc *const sc,
const struct dsm_desc *const dsm)
{
- const uint64_t supported_functions = acpi_DSMQuery(handle,
+ const uint64_t supported_functions = acpi_DSMQuery(sc->handle,
(const uint8_t *)&dsm->uuid, dsm->revision);
/*

File Metadata

Mime Type
text/plain
Expires
Tue, May 19, 7:22 AM (16 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32776665
Default Alt Text
D56818.id177408.diff (1 KB)

Event Timeline