From 7f73a1a8cbd847a9ee6fac50a9201da8c0708c83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 7 Nov 2011 14:49:37 +0800 Subject: [PATCH] input: gsensor: mma8452: fix warning: initialization from incompatible pointer type --- drivers/input/gsensor/mma8452.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/gsensor/mma8452.c b/drivers/input/gsensor/mma8452.c index fe4775d28152..079cc0f504ae 100755 --- a/drivers/input/gsensor/mma8452.c +++ b/drivers/input/gsensor/mma8452.c @@ -457,9 +457,7 @@ static int mma8452_release(struct inode *inode, struct file *file) return 0; } -//static int mma8452_ioctl(struct inode *inode, struct file *file, unsigned int cmd, -// unsigned long arg) -static int mma8452_ioctl( struct file *file, unsigned int cmd,unsigned long arg) +static long mma8452_ioctl( struct file *file, unsigned int cmd,unsigned long arg) { void __user *argp = (void __user *)arg; -- 2.34.1