提交 cce75f41 编写于 作者: B Bastien Armand 提交者: Greg Kroah-Hartman

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: NBastien Armand <armand.bastien@laposte.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 70a8c3eb
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册