summaryrefslogtreecommitdiff
path: root/drivers/staging/panel
diff options
context:
space:
mode:
authorBastien Armand <armand.bastien@laposte.net>2014-04-18 18:10:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-18 16:17:12 -0700
commitcce75f412fa39c71debfbdb1aa20673c4c04396e (patch)
treecd64b7f352bc3e147e7d1c00e03d86324cd70b8b /drivers/staging/panel
parent70a8c3eb8546cefe40fb0bc7991e8899b7b91075 (diff)
staging: panel: fix sparse warnings in keypad_read
This patch fixes two sparse warnings related to keypad_read : warning: incorrect type in argument 1 (different address spaces) warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) Signed-off-by: Bastien Armand <armand.bastien@laposte.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r--drivers/staging/panel/panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index e2e3c6bc3a6c..a5087cbfdef4 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -1584,11 +1584,11 @@ static void lcd_init(void)
*/
static ssize_t keypad_read(struct file *file,
- char *buf, size_t count, loff_t *ppos)
+ char __user *buf, size_t count, loff_t *ppos)
{
unsigned i = *ppos;
- char *tmp = buf;
+ char __user *tmp = buf;
if (keypad_buflen == 0) {
if (file->f_flags & O_NONBLOCK)