diff options
Diffstat (limited to 'include/linux/i2c.h')
| -rw-r--r-- | include/linux/i2c.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index b556e0ab946f..ea507665896c 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
| @@ -577,4 +577,16 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node | |||
| 577 | } | 577 | } |
| 578 | #endif /* CONFIG_OF */ | 578 | #endif /* CONFIG_OF */ |
| 579 | 579 | ||
| 580 | #ifdef CONFIG_I2C_ACPI | ||
| 581 | int acpi_i2c_install_space_handler(struct i2c_adapter *adapter); | ||
| 582 | void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter); | ||
| 583 | void acpi_i2c_register_devices(struct i2c_adapter *adap); | ||
| 584 | #else | ||
| 585 | static inline void acpi_i2c_register_devices(struct i2c_adapter *adap) { } | ||
| 586 | static inline void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter) | ||
| 587 | { } | ||
| 588 | static inline int acpi_i2c_install_space_handler(struct i2c_adapter *adapter) | ||
| 589 | { return 0; } | ||
| 590 | #endif | ||
| 591 | |||
| 580 | #endif /* _LINUX_I2C_H */ | 592 | #endif /* _LINUX_I2C_H */ |
