public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scx200_gpio export cleanups
@ 2006-07-15 18:41 Chris Boot
  2006-07-15 18:50 ` Chris Boot
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Boot @ 2006-07-15 18:41 UTC (permalink / raw)
  To: kernel list; +Cc: Andrew Morton, Jim Cromie, Adrian Bunk

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>

diff --git a/drivers/char/scx200_gpio.c b/drivers/char/scx200_gpio.c
index b956c7b..8ecef2e 100644
--- a/drivers/char/scx200_gpio.c
+++ b/drivers/char/scx200_gpio.c
@@ -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)
  {
diff --git a/include/linux/scx200_gpio.h b/include/linux/scx200_gpio.h
index 90dd069..1a82d30 100644
--- a/include/linux/scx200_gpio.h
+++ b/include/linux/scx200_gpio.h
@@ -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)


-- 
Chris Boot
bootc@bootc.net
http://www.bootc.net/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scx200_gpio export cleanups
  2006-07-15 18:41 [PATCH] scx200_gpio export cleanups Chris Boot
@ 2006-07-15 18:50 ` Chris Boot
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Boot @ 2006-07-15 18:50 UTC (permalink / raw)
  To: Chris Boot; +Cc: kernel list, Andrew Morton, Jim Cromie, Adrian Bunk

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Chris Boot wrote:
> 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>

Corrupted patch... Attached.

-- 
Chris Boot
bootc@bootc.net
http://www.bootc.net/

[-- Attachment #2: scx200-export-cleanups.patch --]
[-- Type: text/x-patch, Size: 847 bytes --]

diff --git a/drivers/char/scx200_gpio.c b/drivers/char/scx200_gpio.c
index b956c7b..8ecef2e 100644
--- a/drivers/char/scx200_gpio.c
+++ b/drivers/char/scx200_gpio.c
@@ -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)
 {
diff --git a/include/linux/scx200_gpio.h b/include/linux/scx200_gpio.h
index 90dd069..1a82d30 100644
--- a/include/linux/scx200_gpio.h
+++ b/include/linux/scx200_gpio.h
@@ -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)
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-15 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-15 18:41 [PATCH] scx200_gpio export cleanups Chris Boot
2006-07-15 18:50 ` Chris Boot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox