summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-10-28 13:21:04 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-11-02 06:15:41 +0000
commit160fc4736b072d96e7fe64e6be7dc84791d0605a (patch)
tree5df807aa30729ee6fff9b1e324d3a3e559af9578 /src
parentcbe2fd351c075c731c27fe3880e336ea92f10b96 (diff)
drivers/wifi/generic: Use is_dev_enabled() instead of dev->enabled
This change replaces the checks for dev->enabled with the helper function `is_dev_enabled()`. Change-Id: Iacceda396c9300bbfa124e76fb9c99d86313ea0f Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46904 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/wifi/generic/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c
index 33862d9526..ac2c5eb5ba 100644
--- a/src/drivers/wifi/generic/acpi.c
+++ b/src/drivers/wifi/generic/acpi.c
@@ -222,7 +222,7 @@ void wifi_pcie_fill_ssdt(const struct device *dev)
{
const char *path;
- if (!dev->enabled)
+ if (!is_dev_enabled(dev))
return;
path = acpi_device_path(dev);
@@ -247,7 +247,7 @@ void wifi_cnvi_fill_ssdt(const struct device *dev)
{
const char *path;
- if (!dev->enabled)
+ if (!is_dev_enabled(dev))
return;
path = acpi_device_path(dev->bus->dev);