Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107857
b: refs/heads/master
c: c948852
h: refs/heads/master
i:
  107855: d5ac4f4
v: v3
  • Loading branch information
Alan Cox authored and Wim Van Sebroeck committed Aug 6, 2008
1 parent b158aac commit 8159d72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 089ab0791d127e8ada526c4b4d18b7584be8acf0
refs/heads/master: c9488520512df659ad21df5d100b52fed96bdf07
8 changes: 3 additions & 5 deletions trunk/drivers/watchdog/pcwd_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ static ssize_t pcipcwd_write(struct file *file, const char __user *data,
return len;
}

static int pcipcwd_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
static long pcipcwd_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
void __user *argp = (void __user *)arg;
int __user *p = argp;
Expand All @@ -477,9 +477,7 @@ static int pcipcwd_ioctl(struct inode *inode, struct file *file,
case WDIOC_GETSTATUS:
{
int status;

pcipcwd_get_status(&status);

return put_user(status, p);
}

Expand Down Expand Up @@ -643,7 +641,7 @@ static const struct file_operations pcipcwd_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = pcipcwd_write,
.ioctl = pcipcwd_ioctl,
.unlocked_ioctl = pcipcwd_ioctl,
.open = pcipcwd_open,
.release = pcipcwd_release,
};
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/watchdog/pcwd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ static ssize_t usb_pcwd_write(struct file *file, const char __user *data,
return len;
}

static int usb_pcwd_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
static long usb_pcwd_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
void __user *argp = (void __user *)arg;
int __user *p = argp;
Expand Down Expand Up @@ -534,7 +534,7 @@ static const struct file_operations usb_pcwd_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = usb_pcwd_write,
.ioctl = usb_pcwd_ioctl,
.unlocked_ioctl = usb_pcwd_ioctl,
.open = usb_pcwd_open,
.release = usb_pcwd_release,
};
Expand Down

0 comments on commit 8159d72

Please sign in to comment.