Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Move i2c-isa-only exported symbol declarations

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>

authored by

Jean Delvare and committed by
Jean Delvare
a97f1ed0 ce9e0794

+4 -4
+4
drivers/i2c/busses/i2c-isa.c
··· 41 41 #include <linux/platform_device.h> 42 42 #include <linux/completion.h> 43 43 44 + /* Exported by i2c-core for i2c-isa only */ 45 + extern void i2c_adapter_dev_release(struct device *dev); 46 + extern struct class i2c_adapter_class; 47 + 44 48 static u32 isa_func(struct i2c_adapter *adapter); 45 49 46 50 /* This is the actual algorithm we define */
-4
include/linux/i2c.h
··· 35 35 #include <linux/sched.h> /* for completion */ 36 36 #include <linux/mutex.h> 37 37 38 - /* --- For i2c-isa ---------------------------------------------------- */ 39 - 40 - extern void i2c_adapter_dev_release(struct device *dev); 41 - extern struct class i2c_adapter_class; 42 38 extern struct bus_type i2c_bus_type; 43 39 44 40 /* --- General options ------------------------------------------------ */