lkml.org 
[lkml]   [2006]   [Jun]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 19 Jun 2006 22:22:07 -0700
FromAndrew Morton <>
SubjectRe: [patch -mm 11/20] chardev: GPIO for SCx200 & PC-8736x: migrate file-ops to common module
On Sat, 17 Jun 2006 12:32:36 -0600
Jim Cromie <jim.cromie@gmail.com> wrote:

> 11/20. patch.migrate-fops
> 
> Now that the read(), write() file-ops are dispatching gpio-ops via the
> vtable, they are generic, and can be moved 'verbatim' to the nsc_gpio
> common-support module.  After the move, various symbols are renamed to
> update 'scx200_' to 'nsc_', and headers are adjusted accordingly.
> 
> Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
> 
> --- ax-10/drivers/char/scx200_gpio.c	2006-06-17 01:23:47.000000000 -0600
> +++ ax-11/drivers/char/scx200_gpio.c	2006-06-17 01:33:50.000000000 -0600
> @@ -37,6 +37,12 @@ MODULE_PARM_DESC(major, "Major device nu
> 
>  extern void scx200_gpio_dump(unsigned index);
> 
> +extern ssize_t nsc_gpio_write(struct file *file, const char __user *data,
> +			      size_t len, loff_t *ppos);
> +
> +extern ssize_t nsc_gpio_read(struct file *file, char __user *buf,
> +			     size_t len, loff_t *ppos);
> +

extern decls always always go into .h files.

> --- ax-10/include/linux/nsc_gpio.h	2006-06-17 01:20:34.000000000 -0600
> +++ ax-11/include/linux/nsc_gpio.h	2006-06-17 01:33:50.000000000 -0600
> @@ -31,3 +31,8 @@ struct nsc_gpio_ops {
>  	int	(*gpio_current)	(unsigned iminor);
>  };
> 
> +extern ssize_t nsc_gpio_write(struct file *file, const char __user *data,
> +			      size_t len, loff_t *ppos);
> +
> +extern ssize_t nsc_gpio_read(struct file *file, char __user *buf,
> +			     size_t len, loff_t *ppos);
> 

Yeah, like that ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-20 07:26    [from the cache]
©2003-2008