projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5400acb
)
input: gsensor: mma8452: fix warning: initialization from incompatible pointer type
author
黄涛
<huangtao@rock-chips.com>
Mon, 7 Nov 2011 06:49:37 +0000
(14:49 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Mon, 7 Nov 2011 06:49:37 +0000
(14:49 +0800)
drivers/input/gsensor/mma8452.c
patch
|
blob
|
history
diff --git
a/drivers/input/gsensor/mma8452.c
b/drivers/input/gsensor/mma8452.c
index fe4775d281525275c9f0570179e0edac63056610..079cc0f504ae9f8432ffdbfa3c6d1ed6c401f794 100755
(executable)
--- 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;