Skip to contentSkip to conversation

scx200_gpio export cleanups

PATCH In review Chris Boot 1 participant 2 messages Jul 15, 2006

Subsystems (2)
lore
Share & tools
lore

Chris Boot

author
#0 lore raw

PATCH 1/1 scx200_gpio export cleanups

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

drivers/char/scx200_gpio.c +1 -1
index b956c7b..8ecef2e 100644
@@ -44,7 +44,7 @@ struct nsc_gpio_ops scx200_gpio_ops = {
 	.gpio_change	= scx200_gpio_change,
 	.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)
 {
include/linux/scx200_gpio.h +1 -0
index 90dd069..1a82d30 100644
@@ -4,6 +4,7 @@ u32 scx200_gpio_configure(unsigned index
 
 extern unsigned scx200_gpio_base;
 extern long scx200_gpio_shadow[2];
+extern struct nsc_gpio_ops scx200_gpio_ops;
 
 #define scx200_gpio_present() (scx200_gpio_base!=0)
 
Signature · 3 lines
Chris Boot
[email protected]
http://www.bootc.net/
author
#1 lore raw
Quoted 3 lines · Chris Boot

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

Corrupted patch... Attached.

Signature · 3 lines
Chris Boot
[email protected]
http://www.bootc.net/
drivers/char/scx200_gpio.c +1 -1
index b956c7b..8ecef2e 100644
@@ -44,7 +44,7 @@ struct nsc_gpio_ops scx200_gpio_ops = {
 	.gpio_change	= scx200_gpio_change,
 	.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)
 {
include/linux/scx200_gpio.h +1 -0
index 90dd069..1a82d30 100644
@@ -4,6 +4,7 @@ u32 scx200_gpio_configure(unsigned index
 
 extern unsigned scx200_gpio_base;
 extern long scx200_gpio_shadow[2];
+extern struct nsc_gpio_ops scx200_gpio_ops;
 
 #define scx200_gpio_present() (scx200_gpio_base!=0)