Skip to contentSkip to conversation

usb: usbtmc: Add ioctl for generic requests on control

PATCH Superseded Greg Kroah-Hartman 1 participant 1 message Jul 24, 2018 USB

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH v3 2/23 usb: usbtmc: Add ioctl for generic requests on control

Review

Quoted 4 lines · Guido Kiener
(quoted diff) +4 -0
+struct usbtmc_ctrlrequest {
+	struct usbtmc_request req;
+	__u64 data; /* pointer to user space */
+} __attribute__ ((packed));

Hint, this structure could just be:

	struct usbtmc_ctrlreqest {
		struct usbtmc_request req;
		__u8 data[0];
	} __attribute__((__aligned__(8)));

No more pointer mess anymore, right?

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