From: Erik Gilling Date: Tue, 31 Aug 2010 01:18:03 +0000 (-0700) Subject: misc: moto_bmp085: move to unlocked_ioctl X-Git-Tag: firefly_0821_release~9834^2~493 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e62e104b36693a7895c3f2802562bc3595f3f4d;p=firefly-linux-kernel-4.4.55.git misc: moto_bmp085: move to unlocked_ioctl Change-Id: I6f15abb72023ab7aff94e4b5c9b188cead59208f --- diff --git a/drivers/misc/moto_bmp085.c b/drivers/misc/moto_bmp085.c index d2887ff57f9a..ef773e21e1ed 100644 --- a/drivers/misc/moto_bmp085.c +++ b/drivers/misc/moto_bmp085.c @@ -31,7 +31,7 @@ #include #include -#include +#include #define DEBUG @@ -287,8 +287,8 @@ static int bmp085_misc_open(struct inode *inode, struct file *file) return 0; } -static int bmp085_misc_ioctl(struct inode *inode, struct file *file, - unsigned int cmd, unsigned long arg) +static long bmp085_misc_ioctl(struct file *file, + unsigned int cmd, unsigned long arg) { void __user *argp = (void __user *)arg; u8 buf[4]; @@ -352,7 +352,7 @@ static int bmp085_misc_ioctl(struct inode *inode, struct file *file, static const struct file_operations bmp085_misc_fops = { .owner = THIS_MODULE, .open = bmp085_misc_open, - .ioctl = bmp085_misc_ioctl, + .unlocked_ioctl = bmp085_misc_ioctl, }; static struct miscdevice bmp085_misc_device = { @@ -540,7 +540,6 @@ static void bmp085_input_work_func(struct work_struct *work) struct bmp085_data *barom = container_of((struct delayed_work *)work, struct bmp085_data, input_work); - int i = 0; int err; u8 buf[2];