aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2008-07-14 22:38:35 +0200
committerJean Delvare <khali@mahadeva.delvare>2008-07-14 22:38:35 +0200
commite9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b (patch)
treeac395c8362e862f9dd4892bc37031dfc9c1bf67e /include/linux/i2c.h
parenti2c-au1550: Fix PM support (diff)
downloadlinux-dev-e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b.tar.xz
linux-dev-e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b.zip
i2c: Export the i2c_bus_type symbol
Export the root of the i2c bus so that PowerPC device tree code can iterate over devices on the i2c bus. Signed-off-by: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 839d0ea3dca3..50cbab4b62b0 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -35,6 +35,8 @@
#include <linux/sched.h> /* for completion */
#include <linux/mutex.h>
+extern struct bus_type i2c_bus_type;
+
/* --- General options ------------------------------------------------ */
struct i2c_msg;