by dingo_bat · 9y ago · 0 comments
int usb_control_msg(struct usb_device * dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void * data, __u16 size, int timeout);
So it is kind of hard to avoid going over the limit.
What we end up doing is break each argument into one line, like this (I hope the formatting comes out all right):
int res = usb_control_msg(
dev,
usb_sndctrlpipe(dev, 0),
0x41,
...
);It's not so much of an eye-sore.
That said, it's certainly a concern worth being aware of where it's relevant.