|
@@ -577,16 +577,20 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node
|
|
|
}
|
|
}
|
|
|
#endif /* CONFIG_OF */
|
|
#endif /* CONFIG_OF */
|
|
|
|
|
|
|
|
-#ifdef CONFIG_I2C_ACPI
|
|
|
|
|
-int acpi_i2c_install_space_handler(struct i2c_adapter *adapter);
|
|
|
|
|
-void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter);
|
|
|
|
|
|
|
+#ifdef CONFIG_ACPI
|
|
|
void acpi_i2c_register_devices(struct i2c_adapter *adap);
|
|
void acpi_i2c_register_devices(struct i2c_adapter *adap);
|
|
|
#else
|
|
#else
|
|
|
static inline void acpi_i2c_register_devices(struct i2c_adapter *adap) { }
|
|
static inline void acpi_i2c_register_devices(struct i2c_adapter *adap) { }
|
|
|
|
|
+#endif /* CONFIG_ACPI */
|
|
|
|
|
+
|
|
|
|
|
+#ifdef CONFIG_ACPI_I2C_OPREGION
|
|
|
|
|
+int acpi_i2c_install_space_handler(struct i2c_adapter *adapter);
|
|
|
|
|
+void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter);
|
|
|
|
|
+#else
|
|
|
static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter)
|
|
static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter)
|
|
|
{ }
|
|
{ }
|
|
|
static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter)
|
|
static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter)
|
|
|
{ return 0; }
|
|
{ return 0; }
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif /* CONFIG_ACPI_I2C_OPREGION */
|
|
|
|
|
|
|
|
#endif /* _LINUX_I2C_H */
|
|
#endif /* _LINUX_I2C_H */
|