]> git.baikalelectronics.ru Git - kernel.git/commit
usb: usbtmc: Add ioctl USBTMC_IOCTL_API_VERSION
authorGuido Kiener <guido@kiener-muenchen.de>
Wed, 12 Sep 2018 08:51:07 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:04:02 +0000 (13:04 +0200)
commit6ce6ef424472fda5acf38c03a3521a58fdc8a58d
tree361e18404143db913a3e5cc2ab9f8e8b42cf3612
parent06e99e8dcd7ffbca4f088c1e3d4bd800c14341d2
usb: usbtmc: Add ioctl USBTMC_IOCTL_API_VERSION

Add ioctl USBTMC_IOCTL_API_VERSION to get current API version
of usbtmc driver.

This is to allow an instrument library to determine whether
the driver API is compatible with the implementation.

The API may change in future versions. Therefore the macro
USBTMC_API_VERSION should be incremented when changing tmc.h
with new flags, ioctls or when changing a significant behavior
of the driver.

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