]> err.no Git - linux-2.6/commitdiff
i2c: Move i2c-isa-only exported symbol declarations
authorJean Delvare <khali@linux-fr.org>
Tue, 1 May 2007 21:26:32 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:32 +0000 (23:26 +0200)
Move the declaration of i2c-isa-only exported symbols to i2c-isa
itself, that's the best way to ensure nobody will attempt to use them.
Hopefully we'll get rid of the exports themselves soon anyway.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-isa.c
include/linux/i2c.h

index 819e8991f2761ac2ad8a10306f512896fd0959bc..b0e1370075deed8e8c6ba04e245c8cd2d3085c40 100644 (file)
 #include <linux/platform_device.h>
 #include <linux/completion.h>
 
+/* Exported by i2c-core for i2c-isa only */
+extern void i2c_adapter_dev_release(struct device *dev);
+extern struct class i2c_adapter_class;
+
 static u32 isa_func(struct i2c_adapter *adapter);
 
 /* This is the actual algorithm we define */
index da95ce79d075ba808edd2ac240d84b59d2b4b149..3af7111c66803836a0e443afc11d52e70a7132d9 100644 (file)
 #include <linux/sched.h>       /* for completion */
 #include <linux/mutex.h>
 
-/* --- For i2c-isa ---------------------------------------------------- */
-
-extern void i2c_adapter_dev_release(struct device *dev);
-extern struct class i2c_adapter_class;
 extern struct bus_type i2c_bus_type;
 
 /* --- General options ------------------------------------------------        */