ACPI / x86: Add acpi_quirk_skip_[i2c_client|serdev]_enumeration() helpers
[sfrench/cifs-2.6.git] / include / acpi / acpi_bus.h
index 17f700c9a4f9d3be738888dada8ee6fa05e5afe6..88f21780447b0eada7365691fc11d065e685d91e 100644 (file)
@@ -622,6 +622,22 @@ static inline bool acpi_device_always_present(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,