diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2026-05-04 20:21:41 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2026-05-13 12:38:24 +0000 |
| commit | f56201cee3e8f90dd17ec287b43997983d23fdfe (patch) | |
| tree | 17c34f8cb7f9bb2d032cb48ab88cebd04cad04e6 | |
| parent | 310cbb8924fa8f0ace9c5f555cf74b7c1e4396a2 (diff) | |
acpi_spmc(4): acpi_spmc_probe_dsm(): Remove passing superfluous handle
The handle is already held by the softc, which is also passed.
No functional change (intended).
Reviewed by: imp, obiwac
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56818
| -rw-r--r-- | sys/dev/acpica/acpi_spmc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c index b12723a14bee..96050705c5e5 100644 --- a/sys/dev/acpica/acpi_spmc.c +++ b/sys/dev/acpica/acpi_spmc.c @@ -332,8 +332,8 @@ failed_to_call_dsm(const struct acpi_spmc_softc *const sc, dsm->name, dsm->revision, dsm_function_name(dsm, function_index)); } -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); @@ -382,7 +382,7 @@ acpi_spmc_attach(device_t dev) ("%s: Inconsistent indices for DSM %s", __func__, dsms[i]->name)); - acpi_spmc_probe_dsm(sc, handle, dsms[i]); + acpi_spmc_probe_dsm(sc, dsms[i]); } if (sc->dsms == 0) { @@ -460,10 +460,10 @@ acpi_spmc_dsm_print_functions(const struct acpi_spmc_softc *const sc, } 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); /* |
