[Armadeus-commitlog] SF.net SVN: armadeus:[1176] trunk/target/linux/modules/gpio/core.c
Brought to you by:
sszy
|
From: <gwe...@us...> - 2009-03-20 10:44:44
|
Revision: 1176
http://armadeus.svn.sourceforge.net/armadeus/?rev=1176&view=rev
Author: gwenhael
Date: 2009-03-20 10:44:37 +0000 (Fri, 20 Mar 2009)
Log Message:
-----------
[LINUX] gpio proc entries (portXirq, portXpullup) has not good types : corrects that
Modified Paths:
--------------
trunk/target/linux/modules/gpio/core.c
Modified: trunk/target/linux/modules/gpio/core.c
===================================================================
--- trunk/target/linux/modules/gpio/core.c 2009-03-20 07:38:51 UTC (rev 1175)
+++ trunk/target/linux/modules/gpio/core.c 2009-03-20 10:44:37 UTC (rev 1176)
@@ -22,7 +22,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
-
+#define DEBUG 1
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
@@ -854,7 +854,7 @@
/* Create proc file to handle GPIO interrupt settings */
for (i = 0; i < NB_PORTS; i++) {
sprintf(proc_config[i].name, "%s/%sirq", GPIO_PROC_DIRNAME, port_name[i]);
- proc_config[i].type = DIRECTION;
+ proc_config[i].type = INTERRUPT;
}
if ((ret = initialize_proc_entry(proc_config)))
@@ -864,7 +864,7 @@
/* Create proc file to handle GPIO pullup settings */
for (i = 0; i < NB_PORTS; i++) {
sprintf(proc_config[i].name, "%s/%spullup", GPIO_PROC_DIRNAME, port_name[i]);
- proc_config[i].type = DIRECTION;
+ proc_config[i].type = PULL_UP;
}
if ((ret = initialize_proc_entry(proc_config)))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|