Commit 239adcf6 authored by Johan Hovold's avatar Johan Hovold

greybus: es1: fix build-time cport constraint

The CPort count of es1 is now defined by CPORT_COUNT.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 1a58a3be
......@@ -556,7 +556,7 @@ static int ap_probe(struct usb_interface *interface,
int i;
/* We need to fit a CPort ID in one byte of a message header */
BUILD_BUG_ON(CPORT_ID_MAX > U8_MAX);
BUILD_BUG_ON(CPORT_COUNT > U8_MAX + 1);
udev = usb_get_dev(interface_to_usbdev(interface));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment