-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 30778 b: refs/heads/master c: 1ca5df0 h: refs/heads/master v: v3
- Loading branch information
Jim Cromie
authored and
Linus Torvalds
committed
Jun 28, 2006
1 parent
d4e0ea8
commit a91c0fe
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: c3dc8071eedaac8c8a05c30fe20b78452a818dd9 | ||
refs/heads/master: 1ca5df0a4cbd17a9536e63c5f69d4717c6538eb0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* linux/drivers/char/nsc_gpio.c | ||
National Semiconductor common GPIO device-file/VFS methods. | ||
Allows a user space process to control the GPIO pins. | ||
Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com> | ||
Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com> | ||
*/ | ||
|
||
#include <linux/config.h> | ||
#include <linux/fs.h> | ||
#include <linux/module.h> | ||
#include <linux/errno.h> | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/nsc_gpio.h> | ||
#include <asm/uaccess.h> | ||
#include <asm/io.h> | ||
|
||
#define NAME "nsc_gpio" | ||
|
||
MODULE_AUTHOR("Jim Cromie <jim.cromie@gmail.com>"); | ||
MODULE_DESCRIPTION("NatSemi GPIO Common Methods"); | ||
MODULE_LICENSE("GPL"); | ||
|
||
static int __init nsc_gpio_init(void) | ||
{ | ||
printk(KERN_DEBUG NAME " initializing\n"); | ||
return 0; | ||
} | ||
|
||
static void __exit nsc_gpio_cleanup(void) | ||
{ | ||
printk(KERN_DEBUG NAME " cleanup\n"); | ||
} | ||
|
||
/* prepare for | ||
common routines for both scx200_gpio and pc87360_gpio | ||
EXPORT_SYMBOL(scx200_gpio_write); | ||
EXPORT_SYMBOL(scx200_gpio_read); | ||
EXPORT_SYMBOL(scx200_gpio_release); | ||
*/ | ||
|
||
module_init(nsc_gpio_init); | ||
module_exit(nsc_gpio_cleanup); |