Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157075746
D56818.id177408.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56818.id177408.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D56818: acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle
Attached
Detach File
Event Timeline
Log In to Comment