diff options
author | Florian Schmaus <fschmaus@gmail.com> | 2011-12-14 08:23:24 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-16 13:54:15 -0500 |
commit | 70fe742c94d4d5e7763c3f864f13c0e907ac3d48 (patch) | |
tree | 8f2b096f8220b866f95c9506b5ac0a374c92071a | |
parent | d5396716f68d34ce8cb60528c6bc144c6bdabecf (diff) |
staging: comedi_fops.c whitespace fixes
Changed whitespaces in comedi/*.c to tabs where necessary. All .c
files within comedi now have no obvious style problems as reported by
checkpatch.pl
Signed-off-by: Florian Schmaus <fschmaus@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 9c8b33cc438e..0d18d80bcd25 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c | |||
@@ -1479,10 +1479,10 @@ static int comedi_mmap(struct file *file, struct vm_area_struct *vma) | |||
1479 | 1479 | ||
1480 | dev_file_info = comedi_get_device_file_info(minor); | 1480 | dev_file_info = comedi_get_device_file_info(minor); |
1481 | if (dev_file_info == NULL) | 1481 | if (dev_file_info == NULL) |
1482 | return -ENODEV; | 1482 | return -ENODEV; |
1483 | dev = dev_file_info->device; | 1483 | dev = dev_file_info->device; |
1484 | if (dev == NULL) | 1484 | if (dev == NULL) |
1485 | return -ENODEV; | 1485 | return -ENODEV; |
1486 | 1486 | ||
1487 | mutex_lock(&dev->mutex); | 1487 | mutex_lock(&dev->mutex); |
1488 | if (!dev->attached) { | 1488 | if (!dev->attached) { |
@@ -1556,10 +1556,10 @@ static unsigned int comedi_poll(struct file *file, poll_table * wait) | |||
1556 | dev_file_info = comedi_get_device_file_info(minor); | 1556 | dev_file_info = comedi_get_device_file_info(minor); |
1557 | 1557 | ||
1558 | if (dev_file_info == NULL) | 1558 | if (dev_file_info == NULL) |
1559 | return -ENODEV; | 1559 | return -ENODEV; |
1560 | dev = dev_file_info->device; | 1560 | dev = dev_file_info->device; |
1561 | if (dev == NULL) | 1561 | if (dev == NULL) |
1562 | return -ENODEV; | 1562 | return -ENODEV; |
1563 | 1563 | ||
1564 | mutex_lock(&dev->mutex); | 1564 | mutex_lock(&dev->mutex); |
1565 | if (!dev->attached) { | 1565 | if (!dev->attached) { |
@@ -1610,10 +1610,10 @@ static ssize_t comedi_write(struct file *file, const char __user *buf, | |||
1610 | dev_file_info = comedi_get_device_file_info(minor); | 1610 | dev_file_info = comedi_get_device_file_info(minor); |
1611 | 1611 | ||
1612 | if (dev_file_info == NULL) | 1612 | if (dev_file_info == NULL) |
1613 | return -ENODEV; | 1613 | return -ENODEV; |
1614 | dev = dev_file_info->device; | 1614 | dev = dev_file_info->device; |
1615 | if (dev == NULL) | 1615 | if (dev == NULL) |
1616 | return -ENODEV; | 1616 | return -ENODEV; |
1617 | 1617 | ||
1618 | if (!dev->attached) { | 1618 | if (!dev->attached) { |
1619 | DPRINTK("no driver configured on comedi%i\n", dev->minor); | 1619 | DPRINTK("no driver configured on comedi%i\n", dev->minor); |
@@ -1721,10 +1721,10 @@ static ssize_t comedi_read(struct file *file, char __user *buf, size_t nbytes, | |||
1721 | dev_file_info = comedi_get_device_file_info(minor); | 1721 | dev_file_info = comedi_get_device_file_info(minor); |
1722 | 1722 | ||
1723 | if (dev_file_info == NULL) | 1723 | if (dev_file_info == NULL) |
1724 | return -ENODEV; | 1724 | return -ENODEV; |
1725 | dev = dev_file_info->device; | 1725 | dev = dev_file_info->device; |
1726 | if (dev == NULL) | 1726 | if (dev == NULL) |
1727 | return -ENODEV; | 1727 | return -ENODEV; |
1728 | 1728 | ||
1729 | if (!dev->attached) { | 1729 | if (!dev->attached) { |
1730 | DPRINTK("no driver configured on comedi%i\n", dev->minor); | 1730 | DPRINTK("no driver configured on comedi%i\n", dev->minor); |
@@ -1931,10 +1931,10 @@ static int comedi_close(struct inode *inode, struct file *file) | |||
1931 | dev_file_info = comedi_get_device_file_info(minor); | 1931 | dev_file_info = comedi_get_device_file_info(minor); |
1932 | 1932 | ||
1933 | if (dev_file_info == NULL) | 1933 | if (dev_file_info == NULL) |
1934 | return -ENODEV; | 1934 | return -ENODEV; |
1935 | dev = dev_file_info->device; | 1935 | dev = dev_file_info->device; |
1936 | if (dev == NULL) | 1936 | if (dev == NULL) |
1937 | return -ENODEV; | 1937 | return -ENODEV; |
1938 | 1938 | ||
1939 | mutex_lock(&dev->mutex); | 1939 | mutex_lock(&dev->mutex); |
1940 | 1940 | ||
@@ -1973,10 +1973,10 @@ static int comedi_fasync(int fd, struct file *file, int on) | |||
1973 | dev_file_info = comedi_get_device_file_info(minor); | 1973 | dev_file_info = comedi_get_device_file_info(minor); |
1974 | 1974 | ||
1975 | if (dev_file_info == NULL) | 1975 | if (dev_file_info == NULL) |
1976 | return -ENODEV; | 1976 | return -ENODEV; |
1977 | dev = dev_file_info->device; | 1977 | dev = dev_file_info->device; |
1978 | if (dev == NULL) | 1978 | if (dev == NULL) |
1979 | return -ENODEV; | 1979 | return -ENODEV; |
1980 | 1980 | ||
1981 | return fasync_helper(fd, file, on, &dev->async_queue); | 1981 | return fasync_helper(fd, file, on, &dev->async_queue); |
1982 | } | 1982 | } |