aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 23:16:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-10 23:16:43 -0400
commit101105b1717f536ca741f940033996302d4ef191 (patch)
tree12ab41ae1b1b66105e9fa2ea763356d2be7e8b34 /drivers/usb/core
parent35ff96dfd3c9aaa921b3e8dcac76b7697f2dcec0 (diff)
parent3873691e5ab34fa26948643d038a2b98c4437298 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs updates from Al Viro: ">rename2() work from Miklos + current_time() from Deepa" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fs: Replace current_fs_time() with current_time() fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps fs: Replace CURRENT_TIME with current_time() for inode timestamps fs: proc: Delete inode time initializations in proc_alloc_inode() vfs: Add current_time() api vfs: add note about i_op->rename changes to porting fs: rename "rename2" i_op to "rename" vfs: remove unused i_op->rename fs: make remaining filesystems use .rename2 libfs: support RENAME_NOREPLACE in simple_rename() fs: support RENAME_NOREPLACE for local filesystems ncpfs: fix unused variable warning
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/devio.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 09c8d9ca61ae..4016dae7433b 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -2409,21 +2409,21 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2409 snoop(&dev->dev, "%s: CONTROL\n", __func__); 2409 snoop(&dev->dev, "%s: CONTROL\n", __func__);
2410 ret = proc_control(ps, p); 2410 ret = proc_control(ps, p);
2411 if (ret >= 0) 2411 if (ret >= 0)
2412 inode->i_mtime = CURRENT_TIME; 2412 inode->i_mtime = current_time(inode);
2413 break; 2413 break;
2414 2414
2415 case USBDEVFS_BULK: 2415 case USBDEVFS_BULK:
2416 snoop(&dev->dev, "%s: BULK\n", __func__); 2416 snoop(&dev->dev, "%s: BULK\n", __func__);
2417 ret = proc_bulk(ps, p); 2417 ret = proc_bulk(ps, p);
2418 if (ret >= 0) 2418 if (ret >= 0)
2419 inode->i_mtime = CURRENT_TIME; 2419 inode->i_mtime = current_time(inode);
2420 break; 2420 break;
2421 2421
2422 case USBDEVFS_RESETEP: 2422 case USBDEVFS_RESETEP:
2423 snoop(&dev->dev, "%s: RESETEP\n", __func__); 2423 snoop(&dev->dev, "%s: RESETEP\n", __func__);
2424 ret = proc_resetep(ps, p); 2424 ret = proc_resetep(ps, p);
2425 if (ret >= 0) 2425 if (ret >= 0)
2426 inode->i_mtime = CURRENT_TIME; 2426 inode->i_mtime = current_time(inode);
2427 break; 2427 break;
2428 2428
2429 case USBDEVFS_RESET: 2429 case USBDEVFS_RESET:
@@ -2435,7 +2435,7 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2435 snoop(&dev->dev, "%s: CLEAR_HALT\n", __func__); 2435 snoop(&dev->dev, "%s: CLEAR_HALT\n", __func__);
2436 ret = proc_clearhalt(ps, p); 2436 ret = proc_clearhalt(ps, p);
2437 if (ret >= 0) 2437 if (ret >= 0)
2438 inode->i_mtime = CURRENT_TIME; 2438 inode->i_mtime = current_time(inode);
2439 break; 2439 break;
2440 2440
2441 case USBDEVFS_GETDRIVER: 2441 case USBDEVFS_GETDRIVER:
@@ -2462,7 +2462,7 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2462 snoop(&dev->dev, "%s: SUBMITURB\n", __func__); 2462 snoop(&dev->dev, "%s: SUBMITURB\n", __func__);
2463 ret = proc_submiturb(ps, p); 2463 ret = proc_submiturb(ps, p);
2464 if (ret >= 0) 2464 if (ret >= 0)
2465 inode->i_mtime = CURRENT_TIME; 2465 inode->i_mtime = current_time(inode);
2466 break; 2466 break;
2467 2467
2468#ifdef CONFIG_COMPAT 2468#ifdef CONFIG_COMPAT
@@ -2470,14 +2470,14 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2470 snoop(&dev->dev, "%s: CONTROL32\n", __func__); 2470 snoop(&dev->dev, "%s: CONTROL32\n", __func__);
2471 ret = proc_control_compat(ps, p); 2471 ret = proc_control_compat(ps, p);
2472 if (ret >= 0) 2472 if (ret >= 0)
2473 inode->i_mtime = CURRENT_TIME; 2473 inode->i_mtime = current_time(inode);
2474 break; 2474 break;
2475 2475
2476 case USBDEVFS_BULK32: 2476 case USBDEVFS_BULK32:
2477 snoop(&dev->dev, "%s: BULK32\n", __func__); 2477 snoop(&dev->dev, "%s: BULK32\n", __func__);
2478 ret = proc_bulk_compat(ps, p); 2478 ret = proc_bulk_compat(ps, p);
2479 if (ret >= 0) 2479 if (ret >= 0)
2480 inode->i_mtime = CURRENT_TIME; 2480 inode->i_mtime = current_time(inode);
2481 break; 2481 break;
2482 2482
2483 case USBDEVFS_DISCSIGNAL32: 2483 case USBDEVFS_DISCSIGNAL32:
@@ -2489,7 +2489,7 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2489 snoop(&dev->dev, "%s: SUBMITURB32\n", __func__); 2489 snoop(&dev->dev, "%s: SUBMITURB32\n", __func__);
2490 ret = proc_submiturb_compat(ps, p); 2490 ret = proc_submiturb_compat(ps, p);
2491 if (ret >= 0) 2491 if (ret >= 0)
2492 inode->i_mtime = CURRENT_TIME; 2492 inode->i_mtime = current_time(inode);
2493 break; 2493 break;
2494 2494
2495 case USBDEVFS_IOCTL32: 2495 case USBDEVFS_IOCTL32:
@@ -2552,7 +2552,7 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
2552 done: 2552 done:
2553 usb_unlock_device(dev); 2553 usb_unlock_device(dev);
2554 if (ret >= 0) 2554 if (ret >= 0)
2555 inode->i_atime = CURRENT_TIME; 2555 inode->i_atime = current_time(inode);
2556 return ret; 2556 return ret;
2557} 2557}
2558 2558