summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2017-05-23 11:50:58 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-05-31 21:01:04 +0200
commit5bf4fa7daea6d5257357b613d0bb81c68e2d1af2 (patch)
tree6965a63f2f48bdb1ee512c1f52e81241bf570c95 /drivers/i2c/i2c-core.h
parenti2c: break out smbus support into separate file (diff)
downloadlinux-5bf4fa7daea6d5257357b613d0bb81c68e2d1af2.tar.xz
linux-5bf4fa7daea6d5257357b613d0bb81c68e2d1af2.zip
i2c: break out OF support into separate file
Also removes some ifdeffery. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/i2c-core.h')
-rw-r--r--drivers/i2c/i2c-core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.h b/drivers/i2c/i2c-core.h
index 77c22b03ff95..22151c88e885 100644
--- a/drivers/i2c/i2c-core.h
+++ b/drivers/i2c/i2c-core.h
@@ -27,4 +27,12 @@ extern struct rw_semaphore __i2c_board_lock;
extern struct list_head __i2c_board_list;
extern int __i2c_first_dynamic_bus_num;
+int i2c_check_addr_validity(unsigned addr, unsigned short flags);
int i2c_check_7bit_addr_validity_strict(unsigned short addr);
+
+#ifdef CONFIG_OF
+void of_i2c_register_devices(struct i2c_adapter *adap);
+#else
+static inline void of_i2c_register_devices(struct i2c_adapter *adap) { }
+#endif
+extern struct notifier_block i2c_of_notifier;