From d9bc6892768df8f3234123814e18b8560326d571 Mon Sep 17 00:00:00 2001 From: Varshit B Pandya Date: Fri, 15 Jul 2022 08:00:04 +0530 Subject: 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 Change-Id: Iad9dca8e50bad87178dfcc1951276703721d5f60 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65850 Reviewed-by: Subrata Banik Reviewed-by: Meera Ravindranath Tested-by: build bot (Jenkins) --- src/drivers/wifi/generic/acpi.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/drivers') 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 @@ -41,14 +41,6 @@ __weak int get_wifi_sar_limits(union wifi_sar_limits *sar_limits) return -1; } -/* - * 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 @@ -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]; -- cgit v1.2.3