summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2015-11-04 15:29:11 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-01 14:52:58 -0800
commit18fc4ebdc7057478497682047db5acfb25b35c49 (patch)
tree24f99fa4fb757a4ebbbdd9da07bdfe8b48f75c23 /drivers/usb/chipidea
parentec4dca8bdfb650fd698401e26f586683ec69a942 (diff)
downloadlinux-18fc4ebdc7057478497682047db5acfb25b35c49.tar.bz2
usb: misc: usbtest: Remove timeval usage
timeval is deprecated and not y2038 safe. Its size also changes according to 32 bit/ 64 bit compilation. Replace it with 32 and 64 bit versions of its individual fields, giving two ioctls with different code values. The two ioctls are necessary to maintain the 32 bit and 64 bit userspace compatibility with a 64/32 bit kernel. Change unsigned to __u32 types for a definitive userspace interface. This is in accordance with the psABI that the unsigned type is always 32 bits. Also use motonic timer instead of real time to ensure positive delta values. Refactor usbtest_ioctl for readability to isolate the handling of the testing timing measurement. The official testusb userspace tool can be changed in a separate patch to reflect the __u32 changes as well. It can use the usbtest_param_32 struct, since 32 bit seconds is long enough for test durations. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
0 files changed, 0 insertions, 0 deletions