diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 76014f8f3c60..365e0df3646b 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -271,9 +271,16 @@ extern void i2c_unregister_device(struct i2c_client *); | |||
271 | * This is done at arch_initcall time, before declaring any i2c adapters. | 271 | * This is done at arch_initcall time, before declaring any i2c adapters. |
272 | * Modules for add-on boards must use other calls. | 272 | * Modules for add-on boards must use other calls. |
273 | */ | 273 | */ |
274 | #ifdef CONFIG_I2C_BOARDINFO | ||
274 | extern int | 275 | extern int |
275 | i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned n); | 276 | i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned n); |
276 | 277 | #else | |
278 | static inline int | ||
279 | i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned n) | ||
280 | { | ||
281 | return 0; | ||
282 | } | ||
283 | #endif | ||
277 | 284 | ||
278 | /* | 285 | /* |
279 | * The following structs are for those who like to implement new bus drivers: | 286 | * The following structs are for those who like to implement new bus drivers: |
@@ -598,7 +605,7 @@ I2C_CLIENT_MODULE_PARM(probe, "List of adapter,address pairs to scan " \ | |||
598 | "additionally"); \ | 605 | "additionally"); \ |
599 | I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to " \ | 606 | I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to " \ |
600 | "scan"); \ | 607 | "scan"); \ |
601 | const static struct i2c_client_address_data addr_data = { \ | 608 | static const struct i2c_client_address_data addr_data = { \ |
602 | .normal_i2c = normal_i2c, \ | 609 | .normal_i2c = normal_i2c, \ |
603 | .probe = probe, \ | 610 | .probe = probe, \ |
604 | .ignore = ignore, \ | 611 | .ignore = ignore, \ |