diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2006-06-27 02:54:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 17:32:43 -0700 |
commit | 1a66fdf083bf2b60c4d12feb970bc7373b59e33a (patch) | |
tree | f1e9d67e5c2fb3f9e7e575a6a9c44db3af6f6c22 /include/linux/nsc_gpio.h | |
parent | 1ca5df0a4cbd17a9536e63c5f69d4717c6538eb0 (diff) | |
download | linux-3.10-1a66fdf083bf2b60c4d12feb970bc7373b59e33a.tar.gz linux-3.10-1a66fdf083bf2b60c4d12feb970bc7373b59e33a.tar.bz2 linux-3.10-1a66fdf083bf2b60c4d12feb970bc7373b59e33a.zip |
[PATCH] chardev: GPIO for SCx200 & PC-8736x: migrate file-ops to common module
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/nsc_gpio.h')
-rw-r--r-- | include/linux/nsc_gpio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nsc_gpio.h b/include/linux/nsc_gpio.h index 3ad8ae9dcb5..27bf66f7386 100644 --- a/include/linux/nsc_gpio.h +++ b/include/linux/nsc_gpio.h @@ -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); |