diff options
author | 2022-01-04 15:37:09 +0100 | |
---|---|---|
committer | 2022-01-04 15:37:09 +0100 | |
commit | 8e0feb25172b51978b9240aea1f0628c5b45b5b1 (patch) | |
tree | 5db593acdbf2a10ae5ac861b2f002b71de3b8ce7 /include/acpi/acpi_bus.h | |
parent | mmc: sdhci-acpi: Use the new soc_intel_is_byt() helper (diff) | |
parent | serdev: Do not instantiate serdevs on boards with known bogus DSDT entries (diff) | |
download | linux-8e0feb25172b51978b9240aea1f0628c5b45b5b1.tar.gz linux-8e0feb25172b51978b9240aea1f0628c5b45b5b1.tar.bz2 linux-8e0feb25172b51978b9240aea1f0628c5b45b5b1.zip |
Merge branch 'acpi-scan' into acpi-x86
Merge recent device enumeration changes to satisfy dependencies.
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index d6fe27b695c3..80c425bc98a7 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -505,6 +505,7 @@ extern int unregister_acpi_notifier(struct notifier_block *); */ int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device); +struct acpi_device *acpi_fetch_acpi_dev(acpi_handle handle); acpi_status acpi_bus_get_status_handle(acpi_handle handle, unsigned long long *sta); int acpi_bus_get_status(struct acpi_device *device); @@ -622,6 +623,22 @@ static inline bool acpi_device_override_status(struct acpi_device *adev, } #endif +#if IS_ENABLED(CONFIG_X86_ANDROID_TABLETS) +bool acpi_quirk_skip_i2c_client_enumeration(struct acpi_device *adev); +int acpi_quirk_skip_serdev_enumeration(struct device *controller_parent, bool *skip); +#else +static inline bool acpi_quirk_skip_i2c_client_enumeration(struct acpi_device *adev) +{ + return false; +} +static inline int +acpi_quirk_skip_serdev_enumeration(struct device *controller_parent, bool *skip) +{ + *skip = false; + return 0; +} +#endif + #ifdef CONFIG_PM void acpi_pm_wakeup_event(struct device *dev); acpi_status acpi_add_pm_notifier(struct acpi_device *adev, struct device *dev, |