Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Mark Brown
95c63cfb 91a92e12

+3 -3
+3 -3
drivers/spi/spidev.c
··· 37 37 #include <linux/spi/spi.h> 38 38 #include <linux/spi/spidev.h> 39 39 40 - #include <asm/uaccess.h> 40 + #include <linux/uaccess.h> 41 41 42 42 43 43 /* ··· 206 206 207 207 mutex_lock(&spidev->buf_lock); 208 208 missing = copy_from_user(spidev->buffer, buf, count); 209 - if (missing == 0) { 209 + if (missing == 0) 210 210 status = spidev_sync_write(spidev, count); 211 - } else 211 + else 212 212 status = -EFAULT; 213 213 mutex_unlock(&spidev->buf_lock); 214 214