usb: usbtmc: Add ioctl to return API version of usbtmc driver
Greg Kroah-Hartman
maintainerPATCH 12/12 usb: usbtmc: Add ioctl to return API version of usbtmc driver
Quoted 6 lines · Guido Kiener
- add ioctl
USBTMC_IOCTL_API_VERSIONto get current API version
- add info message to show API version
- replaceUSBTMC_TIMEOUTmacros with common usedUSB_CTRL_GET_TIMEOUTorUSB_CTRL_SET_TIMEOUTmacros.
- delete some superfluous code lines.
- update ioctl-number.txt
All should be individual patches.
Review static int usbtmc_probe(struct usb_interface *intf, · line 2483
Quoted 6 lines
(quoted diff) +2
-0@@ -2478,6 +2479,9 @@ static int usbtmc_probe(struct usb_interface *intf, dev_dbg(&intf->dev, "%s called\n", __func__); + pr_info("USBTMC driver with API version %d loaded\n", + USBTMC_API_VERSION);
No, please do not be noisy. Working drivers should not send any data to the kernel log.
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html