usb: usbtmc: Add ioctl USBTMC_IOCTL_WRITE_RESULT
authorGuido Kiener <guido@kiener-muenchen.de>
Wed, 12 Sep 2018 08:50:53 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:04:02 +0000 (13:04 +0200)
commitb14984518ee60ef7662aa6520b76ae6046e08857
tree5ef116dbb945f678777e63dbea3b8d9dc3e463f4
parent4ddc645f40e90fa3bc7af3a3f3bd7d29e671a775
usb: usbtmc: Add ioctl USBTMC_IOCTL_WRITE_RESULT

ioctl USBTMC_IOCTL_WRITE_RESULT copies current out_transfer_size
to given __u32 pointer and returns current out_status of the last
(asnynchronous) USBTMC_IOCTL_WRITE call.

Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c
include/uapi/linux/usb/tmc.h