Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197201
b: refs/heads/master
c: 22d1142
h: refs/heads/master
i:
  197199: fb93e2f
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent 9fa7b13 commit bd4330e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09372df0dff51121e772ca5870fb565a08840c86
refs/heads/master: 22d114248be8907f965e68a1bfdcea3302cbc776
14 changes: 7 additions & 7 deletions trunk/drivers/staging/comedi/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
#include "comedidev.h"
#include "comedi_fops.h"
#include <linux/proc_fs.h>
/* #include <linux/string.h> */
#include <linux/string.h>

int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int *eof, void *data)
#ifdef CONFIG_PROC_FS
static int comedi_read(char *buf, char **start, off_t offset, int len,
int *eof, void *data)
{
int i;
int devices_q = 0;
Expand Down Expand Up @@ -82,18 +83,17 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
return l;
}

#ifdef CONFIG_PROC_FS
void comedi_proc_init(void)
{
struct proc_dir_entry *comedi_proc;

comedi_proc = create_proc_entry("comedi", S_IFREG | S_IRUGO, 0);
comedi_proc = create_proc_entry("comedi", S_IFREG | S_IRUGO, NULL);
if (comedi_proc)
comedi_proc->read_proc = comedi_read_procmem;
comedi_proc->read_proc = comedi_read;
}

void comedi_proc_cleanup(void)
{
remove_proc_entry("comedi", 0);
remove_proc_entry("comedi", NULL);
}
#endif

0 comments on commit bd4330e

Please sign in to comment.