diff options
author | Varshit B Pandya <varshit.b.pandya@intel.com> | 2022-07-15 08:00:04 +0530 |
---|---|---|
committer | Martin L Roth <gaumless@tutanota.com> | 2022-07-16 22:44:09 +0000 |
commit | d9bc6892768df8f3234123814e18b8560326d571 (patch) | |
tree | 221767c07a20ddd4df37745fd3bd1d9cbafd9d4f | |
parent | c58f67441194f7fc80f0a24794d5af907c25f332 (diff) |
driver/wifi: Remove unused function wifi_emit_dsm
As part of this CL https://review.coreboot.org/c/coreboot/+/61020
this function was decoupled and support for new DSM was added.
This function is no longer used so remove it.
Signed-off-by: Varshit B Pandya <varshit.b.pandya@intel.com>
Change-Id: Iad9dca8e50bad87178dfcc1951276703721d5f60
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65850
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Meera Ravindranath <meera.ravindranath@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/drivers/wifi/generic/acpi.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index ee0963178e..88bcf3a483 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -42,14 +42,6 @@ __weak int get_wifi_sar_limits(union wifi_sar_limits *sar_limits) } /* - * Generate ACPI AML code for _DSM method. - * This function takes as input uuid for the device, set of callbacks and - * argument to pass into the callbacks. Callbacks should ensure that Local0 and - * Local1 are left untouched. Use of Local2-Local7 is permitted in callbacks. - */ -void wifi_emit_dsm(struct dsm_profile *dsm); - -/* * Function 1: Allow PC OEMs to set ETSI 5.8GHz SRD in Passive/Disabled ESTI SRD * Channels: 149, 153, 157, 161, 165 * 0 - ETSI 5.8GHz SRD active scan @@ -180,21 +172,6 @@ static void (*wifi_dsm2_callbacks[])(void *) = { wifi_dsm_ddrrfim_func3_cb, /* Function 3 */ }; -void wifi_emit_dsm(struct dsm_profile *dsm) -{ - int i; - size_t count = ARRAY_SIZE(wifi_dsm_callbacks); - - if (dsm == NULL) - return; - - for (i = 1; i < count; i++) - if (!(dsm->supported_functions & (1 << i))) - wifi_dsm_callbacks[i] = NULL; - - acpigen_write_dsm(ACPI_DSM_OEM_WIFI_UUID, wifi_dsm_callbacks, count, dsm); -} - static const uint8_t *sar_fetch_set(const struct sar_profile *sar, size_t set_num) { const uint8_t *sar_table = &sar->sar_table[0]; |