diff options
Diffstat (limited to 'src/drivers/i2c')
-rw-r--r-- | src/drivers/i2c/da7219/da7219.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/generic/generic.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/max98373/max98373.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/max98927/max98927.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/nau8825/nau8825.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/rt5663/rt5663.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/sx9310/sx9310.c | 2 | ||||
-rw-r--r-- | src/drivers/i2c/tpm/chip.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/src/drivers/i2c/da7219/da7219.c b/src/drivers/i2c/da7219/da7219.c index 43e6076b73..d2a4b78651 100644 --- a/src/drivers/i2c/da7219/da7219.c +++ b/src/drivers/i2c/da7219/da7219.c @@ -51,7 +51,7 @@ static void da7219_fill_ssdt(struct device *dev) acpigen_write_name_integer("_UID", 1); acpigen_write_name_string("_DDN", dev->chip_ops->name); acpigen_write_name_integer("_S0W", 4); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c index 1b12df57d3..df929b779c 100644 --- a/src/drivers/i2c/generic/generic.c +++ b/src/drivers/i2c/generic/generic.c @@ -87,7 +87,7 @@ void i2c_generic_fill_ssdt(struct device *dev, acpigen_write_name_string("_CID", config->cid); acpigen_write_name_integer("_UID", config->uid); acpigen_write_name_string("_DDN", config->desc); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c index 558be8a2ca..e019b7076e 100644 --- a/src/drivers/i2c/max98373/max98373.c +++ b/src/drivers/i2c/max98373/max98373.c @@ -51,7 +51,7 @@ static void max98373_fill_ssdt(struct device *dev) acpigen_write_name_integer("_UID", config->uid); if (config->desc) acpigen_write_name_string("_DDN", config->desc); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/max98927/max98927.c b/src/drivers/i2c/max98927/max98927.c index 12599fed7c..ec0503410f 100644 --- a/src/drivers/i2c/max98927/max98927.c +++ b/src/drivers/i2c/max98927/max98927.c @@ -49,7 +49,7 @@ static void max98927_fill_ssdt(struct device *dev) acpigen_write_name_integer("_UID", config->uid); if (config->desc) acpigen_write_name_string("_DDN", config->desc); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/nau8825/nau8825.c b/src/drivers/i2c/nau8825/nau8825.c index 3cf5edd656..86d4306ab7 100644 --- a/src/drivers/i2c/nau8825/nau8825.c +++ b/src/drivers/i2c/nau8825/nau8825.c @@ -55,7 +55,7 @@ static void nau8825_fill_ssdt(struct device *dev) acpigen_write_name_string("_HID", NAU8825_ACPI_HID); acpigen_write_name_integer("_UID", 0); acpigen_write_name_string("_DDN", dev->chip_ops->name); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/rt5663/rt5663.c b/src/drivers/i2c/rt5663/rt5663.c index 16237d6203..38b2a9853a 100644 --- a/src/drivers/i2c/rt5663/rt5663.c +++ b/src/drivers/i2c/rt5663/rt5663.c @@ -51,7 +51,7 @@ static void rt5663_fill_ssdt(struct device *dev) acpigen_write_name_string("_HID", RT5663_ACPI_HID); acpigen_write_name_integer("_UID", config->uid); acpigen_write_name_string("_DDN", dev->chip_ops->name); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c index 3443f5cd23..0e98bcb941 100644 --- a/src/drivers/i2c/sx9310/sx9310.c +++ b/src/drivers/i2c/sx9310/sx9310.c @@ -53,7 +53,7 @@ static void i2c_sx9310_fill_ssdt(struct device *dev) acpigen_write_name_string("_HID", I2C_SX9310_ACPI_ID); acpigen_write_name_integer("_UID", config->uid); acpigen_write_name_string("_DDN", config->desc); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); diff --git a/src/drivers/i2c/tpm/chip.c b/src/drivers/i2c/tpm/chip.c index c2af071932..3dbe8115d7 100644 --- a/src/drivers/i2c/tpm/chip.c +++ b/src/drivers/i2c/tpm/chip.c @@ -49,7 +49,7 @@ static void i2c_tpm_fill_ssdt(struct device *dev) acpigen_write_name_string("_HID", config->hid); acpigen_write_name_integer("_UID", config->uid); acpigen_write_name_string("_DDN", dev->chip_ops->name); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); |