Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37983
b: refs/heads/master
c: 795b89d
h: refs/heads/master
i:
  37981: 622988a
  37979: c10da1b
  37975: 08211a6
  37967: 7df282d
  37951: bf549a7
v: v3
  • Loading branch information
Samuel Tardieu authored and Wim Van Sebroeck committed Oct 2, 2006
1 parent a76ab6c commit dabe41e
Show file tree
Hide file tree
Showing 44 changed files with 45 additions and 45 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: 25ff3780d4cd46804e22192a728cfb6b33c84d1b
refs/heads/master: 795b89d207d8ff5397f9ff1f4d44662aa7c821fc
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/acquirewdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int acq_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/advantechwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ advwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/alim1535_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int ali_ioctl(struct inode *inode, struct file *file,
return put_user(timeout, p);

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/alim7101_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
case WDIOC_GETTIMEOUT:
return put_user(timeout, p);
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/at91_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int at91_wdt_ioctl(struct inode *inode, struct file *file,
return 0;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/booke_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int booke_wdt_ioctl (struct inode *inode, struct file *file,
return -EINVAL;
return 0;
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/cpu5wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int cpu5wdt_ioctl(struct inode *inode, struct file *file, unsigned int cm
}
break;
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/ep93xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static int
ep93xx_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
int ret = -ENOIOCTLCMD;
int ret = -ENOTTY;

switch (cmd) {
case WDIOC_GETSUPPORT:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/eurotechwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static int eurwdt_ioctl(struct inode *inode, struct file *file,

switch(cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;

case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static int esb_ioctl (struct inode *inode, struct file *file,
return put_user(heartbeat, p);

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/i8xx_tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static int i8xx_tco_ioctl (struct inode *inode, struct file *file,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/ib700wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ ibwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
break;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/ibmasr.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static int asr_ioctl(struct inode *inode, struct file *file,
}
}

return -ENOIOCTLCMD;
return -ENOTTY;
}

static int asr_open(struct inode *inode, struct file *file)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/indydog.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static int indydog_ioctl(struct inode *inode, struct file *file,

switch (cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
if (copy_to_user((struct watchdog_info *)arg,
&ident, sizeof(ident)))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/ixp2000_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static int
ixp2000_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
int ret = -ENOIOCTLCMD;
int ret = -ENOTTY;
int time;

switch (cmd) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/ixp4xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int
ixp4xx_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
int ret = -ENOIOCTLCMD;
int ret = -ENOTTY;
int time;

switch (cmd) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/machzwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static int zf_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
break;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/mixcomwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static int mixcomwd_ioctl(struct inode *inode, struct file *file,
mixcomwd_ping();
break;
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/mpc83xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int mpc83xx_wdt_ioctl(struct inode *inode, struct file *file,
case WDIOC_GETTIMEOUT:
return put_user(timeout_sec, p);
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/mpc8xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static int mpc8xx_wdt_ioctl(struct inode *inode, struct file *file,
break;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/char/watchdog/mpcore_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static int mpcore_wdt_ioctl(struct inode *inode, struct file *file,
} uarg;

if (_IOC_DIR(cmd) && _IOC_SIZE(cmd) > sizeof(uarg))
return -ENOIOCTLCMD;
return -ENOTTY;

if (_IOC_DIR(cmd) & _IOC_WRITE) {
ret = copy_from_user(&uarg, (void __user *)arg, _IOC_SIZE(cmd));
Expand Down Expand Up @@ -271,7 +271,7 @@ static int mpcore_wdt_ioctl(struct inode *inode, struct file *file,
break;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

if (ret == 0 && _IOC_DIR(cmd) & _IOC_READ) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/mv64x60_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int mv64x60_wdt_ioctl(struct inode *inode, struct file *file,
break;

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/pcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,

switch(cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;

case WDIOC_GETSUPPORT:
if(copy_to_user(argp, &ident, sizeof(ident)))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/pcwd_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ static int pcipcwd_ioctl(struct inode *inode, struct file *file,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/pcwd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static int usb_pcwd_ioctl(struct inode *inode, struct file *file,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static int s3c2410wdt_ioctl(struct inode *inode, struct file *file,

switch (cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;

case WDIOC_GETSUPPORT:
return copy_to_user(argp, &s3c2410_wdt_ident,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/sa1100_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static struct watchdog_info ident = {
static int sa1100dog_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
{
int ret = -ENOIOCTLCMD;
int ret = -ENOTTY;
int time;
void __user *argp = (void __user *)arg;
int __user *p = argp;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/sbc60xxwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_GETSTATUS:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/sbc_epx_c3.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int epx_c3_ioctl(struct inode *inode, struct file *file,

return retval;
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/sc1200wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static int sc1200wdt_ioctl(struct inode *inode, struct file *file, unsigned int

switch (cmd) {
default:
return -ENOIOCTLCMD; /* Keep Pavel Machek amused ;) */
return -ENOTTY;

case WDIOC_GETSUPPORT:
if (copy_to_user(argp, &ident, sizeof ident))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/sc520_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_GETSTATUS:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/scx200_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static int scx200_wdt_ioctl(struct inode *inode, struct file *file,

switch (cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
if(copy_to_user(argp, &ident, sizeof(ident)))
return -EFAULT;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/shwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static int sh_wdt_ioctl(struct inode *inode, struct file *file,

return retval;
default:
return -ENOIOCTLCMD;
return -ENOTTY;
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/softdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static int softdog_ioctl(struct inode *inode, struct file *file,
};
switch (cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident,
sizeof(ident)) ? -EFAULT : 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/w83627hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/w83877f_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_GETSTATUS:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/w83977f_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int wdt_ioctl(struct inode *inode, struct file *file,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;

case WDIOC_GETSUPPORT:
return copy_to_user(uarg.ident, &ident, sizeof(ident)) ? -EFAULT : 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wafer5823wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static int wafwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wdrtas.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ wdrtas_ioctl(struct inode *inode, struct file *file,
return put_user(wdrtas_interval, argp);

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wdt285.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ watchdog_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
unsigned int new_margin;
int ret = -ENOIOCTLCMD;
int ret = -ENOTTY;

switch(cmd) {
case WDIOC_GETSUPPORT:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wdt977.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static int wdt977_ioctl(struct inode *inode, struct file *file,
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;

case WDIOC_GETSUPPORT:
return copy_to_user(uarg.ident, &ident,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/wdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static int wdtpci_ioctl(struct inode *inode, struct file *file, unsigned int cmd
switch(cmd)
{
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;

Expand Down

0 comments on commit dabe41e

Please sign in to comment.