Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353930
b: refs/heads/master
c: ed69335
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 8eaa9fd commit c0041da
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: cd6b7636e961b621b54f6f132db81c3ea7c2ca5e
refs/heads/master: ed69335c727b7a499ac8499d943c6c879c937d69
14 changes: 7 additions & 7 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct comedi_file_info {
static DEFINE_SPINLOCK(comedi_file_info_table_lock);
static struct comedi_file_info *comedi_file_info_table[COMEDI_NUM_MINORS];

static struct comedi_file_info *comedi_get_device_file_info(unsigned minor)
static struct comedi_file_info *comedi_file_info_from_minor(unsigned minor)
{
struct comedi_file_info *info;

Expand All @@ -111,7 +111,7 @@ struct comedi_device *comedi_dev_from_minor(unsigned minor)
{
struct comedi_file_info *info;

info = comedi_get_device_file_info(minor);
info = comedi_file_info_from_minor(minor);

return info ? info->device : NULL;
}
Expand Down Expand Up @@ -582,7 +582,7 @@ static int do_devinfo_ioctl(struct comedi_device *dev,
{
struct comedi_devinfo devinfo;
const unsigned minor = iminor(file->f_dentry->d_inode);
struct comedi_file_info *info = comedi_get_device_file_info(minor);
struct comedi_file_info *info = comedi_file_info_from_minor(minor);
struct comedi_subdevice *read_subdev =
comedi_get_read_subdevice(info);
struct comedi_subdevice *write_subdev =
Expand Down Expand Up @@ -1750,7 +1750,7 @@ static int comedi_mmap(struct file *file, struct vm_area_struct *vma)
int i;
int retval;
struct comedi_subdevice *s;
struct comedi_file_info *info = comedi_get_device_file_info(minor);
struct comedi_file_info *info = comedi_file_info_from_minor(minor);
struct comedi_device *dev;

if (info == NULL)
Expand Down Expand Up @@ -1826,7 +1826,7 @@ static unsigned int comedi_poll(struct file *file, poll_table *wait)
const unsigned minor = iminor(file->f_dentry->d_inode);
struct comedi_subdevice *read_subdev;
struct comedi_subdevice *write_subdev;
struct comedi_file_info *info = comedi_get_device_file_info(minor);
struct comedi_file_info *info = comedi_file_info_from_minor(minor);
struct comedi_device *dev;

if (info == NULL)
Expand Down Expand Up @@ -1879,7 +1879,7 @@ static ssize_t comedi_write(struct file *file, const char __user *buf,
int n, m, count = 0, retval = 0;
DECLARE_WAITQUEUE(wait, current);
const unsigned minor = iminor(file->f_dentry->d_inode);
struct comedi_file_info *info = comedi_get_device_file_info(minor);
struct comedi_file_info *info = comedi_file_info_from_minor(minor);
struct comedi_device *dev;

if (info == NULL)
Expand Down Expand Up @@ -1989,7 +1989,7 @@ static ssize_t comedi_read(struct file *file, char __user *buf, size_t nbytes,
int n, m, count = 0, retval = 0;
DECLARE_WAITQUEUE(wait, current);
const unsigned minor = iminor(file->f_dentry->d_inode);
struct comedi_file_info *info = comedi_get_device_file_info(minor);
struct comedi_file_info *info = comedi_file_info_from_minor(minor);
struct comedi_device *dev;

if (info == NULL)
Expand Down

0 comments on commit c0041da

Please sign in to comment.