diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2006-06-27 05:54:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:42 -0400 |
commit | 1ca5df0a4cbd17a9536e63c5f69d4717c6538eb0 (patch) | |
tree | 8986bbadc721599a0751b8ec6488f22bac2ce4a6 /drivers/char/nsc_gpio.c | |
parent | c3dc8071eedaac8c8a05c30fe20b78452a818dd9 (diff) |
[PATCH] chardev: GPIO for SCx200 & PC-8736x: add empty common-module
Add the nsc_gpio common-support module as an empty shell. Next patch starts
the migration of the common gpio support routines.
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 'drivers/char/nsc_gpio.c')
-rw-r--r-- | drivers/char/nsc_gpio.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/char/nsc_gpio.c b/drivers/char/nsc_gpio.c new file mode 100644 index 000000000000..42d95904967c --- /dev/null +++ b/drivers/char/nsc_gpio.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* linux/drivers/char/nsc_gpio.c | ||
2 | |||
3 | National Semiconductor common GPIO device-file/VFS methods. | ||
4 | Allows a user space process to control the GPIO pins. | ||
5 | |||
6 | Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> | ||
7 | Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com> | ||
8 | */ | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <linux/fs.h> | ||
12 | #include <linux/module.h> | ||
13 | #include <linux/errno.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/nsc_gpio.h> | ||
17 | #include <asm/uaccess.h> | ||
18 | #include <asm/io.h> | ||
19 | |||
20 | #define NAME "nsc_gpio" | ||
21 | |||
22 | MODULE_AUTHOR("Jim Cromie <jim.cromie@gmail.com>"); | ||
23 | MODULE_DESCRIPTION("NatSemi GPIO Common Methods"); | ||
24 | MODULE_LICENSE("GPL"); | ||
25 | |||
26 | static int __init nsc_gpio_init(void) | ||
27 | { | ||
28 | printk(KERN_DEBUG NAME " initializing\n"); | ||
29 | return 0; | ||
30 | } | ||
31 | |||
32 | static void __exit nsc_gpio_cleanup(void) | ||
33 | { | ||
34 | printk(KERN_DEBUG NAME " cleanup\n"); | ||
35 | } | ||
36 | |||
37 | /* prepare for | ||
38 | common routines for both scx200_gpio and pc87360_gpio | ||
39 | EXPORT_SYMBOL(scx200_gpio_write); | ||
40 | EXPORT_SYMBOL(scx200_gpio_read); | ||
41 | EXPORT_SYMBOL(scx200_gpio_release); | ||
42 | */ | ||
43 | |||
44 | module_init(nsc_gpio_init); | ||
45 | module_exit(nsc_gpio_cleanup); | ||