Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cce75f41 authored by Bastien Armand's avatar Bastien Armand Committed by Greg Kroah-Hartman
Browse files

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: default avatarBastien Armand <armand.bastien@laposte.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70a8c3eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1584,11 +1584,11 @@ static void lcd_init(void)
 */
 */


static ssize_t keypad_read(struct file *file,
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;
	unsigned i = *ppos;
	char *tmp = buf;
	char __user *tmp = buf;


	if (keypad_buflen == 0) {
	if (keypad_buflen == 0) {
		if (file->f_flags & O_NONBLOCK)
		if (file->f_flags & O_NONBLOCK)