提交 58012cd7 编写于 作者: C Chris Boot 提交者: Linus Torvalds

[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: NChris Boot <bootc@bootc.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 684f9783
...@@ -44,7 +44,7 @@ struct nsc_gpio_ops scx200_gpio_ops = { ...@@ -44,7 +44,7 @@ struct nsc_gpio_ops scx200_gpio_ops = {
.gpio_change = scx200_gpio_change, .gpio_change = scx200_gpio_change,
.gpio_current = scx200_gpio_current .gpio_current = scx200_gpio_current
}; };
EXPORT_SYMBOL(scx200_gpio_ops); EXPORT_SYMBOL_GPL(scx200_gpio_ops);
static int scx200_gpio_open(struct inode *inode, struct file *file) static int scx200_gpio_open(struct inode *inode, struct file *file)
{ {
......
...@@ -4,6 +4,7 @@ u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear); ...@@ -4,6 +4,7 @@ u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear);
extern unsigned scx200_gpio_base; extern unsigned scx200_gpio_base;
extern long scx200_gpio_shadow[2]; extern long scx200_gpio_shadow[2];
extern struct nsc_gpio_ops scx200_gpio_ops;
#define scx200_gpio_present() (scx200_gpio_base!=0) #define scx200_gpio_present() (scx200_gpio_base!=0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册