From: <far...@us...> - 2007-05-25 19:49:09
|
Revision: 995 http://svn.sourceforge.net/hackndev/?rev=995&view=rev Author: farcaller Date: 2007-05-25 12:49:06 -0700 (Fri, 25 May 2007) Log Message: ----------- gpioed: made things static to compile-in both gpioed/gpioed-ng Modified Paths: -------------- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c linux4palm/linux/trunk/drivers/misc/gpioed.c Modified: linux4palm/linux/trunk/drivers/misc/gpioed-ng.c =================================================================== --- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-05-25 19:03:54 UTC (rev 994) +++ linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-05-25 19:49:06 UTC (rev 995) @@ -77,14 +77,14 @@ } while (0); } -void set_afn(int gpio, int fn) +static void set_afn(int gpio, int fn) { int gafr; gafr = GAFR(gpio) & ~(0x3 << (((gpio) & 0xf)*2)); GAFR(gpio) = gafr | (fn << (((gpio) & 0xf)*2)); } -void handle_request(void) +static void handle_request(void) { char *p = NULL; unsigned long id = simple_strtoul(procfs_buffer+2, &p, 10); @@ -131,7 +131,7 @@ } -int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) +static int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) { procfs_buffer_size = count; if (procfs_buffer_size > PROCFS_MAX_SIZE ) { Modified: linux4palm/linux/trunk/drivers/misc/gpioed.c =================================================================== --- linux4palm/linux/trunk/drivers/misc/gpioed.c 2007-05-25 19:03:54 UTC (rev 994) +++ linux4palm/linux/trunk/drivers/misc/gpioed.c 2007-05-25 19:49:06 UTC (rev 995) @@ -27,9 +27,9 @@ static char procfs_buffer[PROCFS_MAX_SIZE]; static unsigned long procfs_buffer_size = 0; -unsigned int gpioed_irq; +static unsigned int gpioed_irq; -int procfile_read(char *buffer, char **buffer_location, off_t offset, int buffer_length, int *eof, void *data) +static int procfile_read(char *buffer, char **buffer_location, off_t offset, int buffer_length, int *eof, void *data) { int ret; @@ -43,9 +43,9 @@ return ret; } -void handle_request(void); +static void handle_request(void); -int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) +static int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) { procfs_buffer_size = count; if (procfs_buffer_size > PROCFS_MAX_SIZE ) { @@ -72,7 +72,7 @@ gpioed_irq, GET_GPIO(gpioed_irq) ? "high" : "low "); } -irqreturn_t gpio_irq(int irq, void *dev_id) +static irqreturn_t gpio_irq(int irq, void *dev_id) { static int initialised = 0; struct work_struct gpioed_ws; @@ -122,7 +122,7 @@ } /*** Request handler ***/ -void handle_request() +static void handle_request() { char *p = NULL; unsigned long base = 10; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |