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

[PATCH] scx200_gpio export cleanups

Use EXPORT_SYMBOL_GPL for new symbols, and declare the struct in the header
file for access by other modules.

Signed-off-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Chris Boot and committed by
Linus Torvalds
58012cd7 684f9783

+2 -1
+1 -1
drivers/char/scx200_gpio.c
··· 44 44 .gpio_change = scx200_gpio_change, 45 45 .gpio_current = scx200_gpio_current 46 46 }; 47 - EXPORT_SYMBOL(scx200_gpio_ops); 47 + EXPORT_SYMBOL_GPL(scx200_gpio_ops); 48 48 49 49 static int scx200_gpio_open(struct inode *inode, struct file *file) 50 50 {
+1
include/linux/scx200_gpio.h
··· 4 4 5 5 extern unsigned scx200_gpio_base; 6 6 extern long scx200_gpio_shadow[2]; 7 + extern struct nsc_gpio_ops scx200_gpio_ops; 7 8 8 9 #define scx200_gpio_present() (scx200_gpio_base!=0) 9 10