summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spidev.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-14 03:36:54 +0200
committerMark Brown <broonie@linaro.org>2013-10-15 14:15:52 +0200
commit95c63cfba777bf2154565abbdc61ea970aaa632c (patch)
tree6ed8af7d36af971c22222104d5803cb187fbcde9 /drivers/spi/spidev.c
parentspi: spidev: remove unnecessary spi_set_drvdata() (diff)
downloadlinux-95c63cfba777bf2154565abbdc61ea970aaa632c.tar.xz
linux-95c63cfba777bf2154565abbdc61ea970aaa632c.zip
spi: spidev: Fix checkpatch issue
Fix the following checkpatch warnings. WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h> WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r--drivers/spi/spidev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index c53556a1899a..d7c6e36021e8 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -37,7 +37,7 @@
#include <linux/spi/spi.h>
#include <linux/spi/spidev.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
/*
@@ -206,9 +206,9 @@ spidev_write(struct file *filp, const char __user *buf,
mutex_lock(&spidev->buf_lock);
missing = copy_from_user(spidev->buffer, buf, count);
- if (missing == 0) {
+ if (missing == 0)
status = spidev_sync_write(spidev, count);
- } else
+ else
status = -EFAULT;
mutex_unlock(&spidev->buf_lock);