Commit 1071ed3f authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] drivers/input annotations

	* vortex.c: trivial __iomem annotations
	* serio_raw.c and tsdev.c: equally trivial __user ones.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a4dd3f22
...@@ -55,8 +55,8 @@ MODULE_LICENSE("GPL"); ...@@ -55,8 +55,8 @@ MODULE_LICENSE("GPL");
struct vortex { struct vortex {
struct gameport gameport; struct gameport gameport;
struct pci_dev *dev; struct pci_dev *dev;
unsigned char *base; unsigned char __iomem *base;
unsigned char *io; unsigned char __iomem *io;
char phys[32]; char phys[32];
}; };
......
...@@ -157,7 +157,7 @@ static int serio_raw_fetch_byte(struct serio_raw *serio_raw, char *c) ...@@ -157,7 +157,7 @@ static int serio_raw_fetch_byte(struct serio_raw *serio_raw, char *c)
return !empty; return !empty;
} }
static ssize_t serio_raw_read(struct file *file, char *buffer, size_t count, loff_t *ppos) static ssize_t serio_raw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos)
{ {
struct serio_raw_list *list = file->private_data; struct serio_raw_list *list = file->private_data;
struct serio_raw *serio_raw = list->serio_raw; struct serio_raw *serio_raw = list->serio_raw;
...@@ -187,7 +187,7 @@ static ssize_t serio_raw_read(struct file *file, char *buffer, size_t count, lof ...@@ -187,7 +187,7 @@ static ssize_t serio_raw_read(struct file *file, char *buffer, size_t count, lof
return retval; return retval;
} }
static ssize_t serio_raw_write(struct file *file, const char *buffer, size_t count, loff_t *ppos) static ssize_t serio_raw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
{ {
struct serio_raw_list *list = file->private_data; struct serio_raw_list *list = file->private_data;
ssize_t written = 0; ssize_t written = 0;
......
...@@ -250,12 +250,12 @@ static int tsdev_ioctl(struct inode *inode, struct file *file, ...@@ -250,12 +250,12 @@ static int tsdev_ioctl(struct inode *inode, struct file *file,
switch (cmd) { switch (cmd) {
case TS_GET_CAL: case TS_GET_CAL:
if (copy_to_user ((void *)arg, &tsdev->cal, if (copy_to_user ((void __user *)arg, &tsdev->cal,
sizeof (struct ts_calibration))) sizeof (struct ts_calibration)))
retval = -EFAULT; retval = -EFAULT;
break; break;
case TS_SET_CAL: case TS_SET_CAL:
if (copy_from_user (&tsdev->cal, (void *)arg, if (copy_from_user (&tsdev->cal, (void __user *)arg,
sizeof (struct ts_calibration))) sizeof (struct ts_calibration)))
retval = -EFAULT; retval = -EFAULT;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment