proc.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) proc.c (d9dda78bad879595d8c4220a067fc029d6484a16)
1/*
2 * ISA Plug & Play support
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 41 unchanged lines hidden (view full) ---

50 file->f_pos = new;
51 mutex_unlock(&inode->i_mutex);
52 return new;
53}
54
55static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf,
56 size_t nbytes, loff_t * ppos)
57{
1/*
2 * ISA Plug & Play support
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 41 unchanged lines hidden (view full) ---

50 file->f_pos = new;
51 mutex_unlock(&inode->i_mutex);
52 return new;
53}
54
55static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf,
56 size_t nbytes, loff_t * ppos)
57{
58 struct inode *ino = file_inode(file);
59 struct proc_dir_entry *dp = PDE(ino);
60 struct pnp_dev *dev = dp->data;
58 struct pnp_dev *dev = PDE_DATA(file_inode(file));
61 int pos = *ppos;
62 int cnt, size = 256;
63
64 if (pos >= size)
65 return 0;
66 if (nbytes >= size)
67 nbytes = size;
68 if (pos + nbytes > size)

--- 55 unchanged lines hidden ---
59 int pos = *ppos;
60 int cnt, size = 256;
61
62 if (pos >= size)
63 return 0;
64 if (nbytes >= size)
65 nbytes = size;
66 if (pos + nbytes > size)

--- 55 unchanged lines hidden ---