OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a58a3b
)
greybus: es1: fix build-time cport constraint
author
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 2 Sep 2015 16:03:20 +0000
(18:03 +0200)
committer
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 3 Sep 2015 07:45:04 +0000
(09:45 +0200)
The CPort count of es1 is now defined by CPORT_COUNT.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/staging/greybus/es1.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/es1.c
b/drivers/staging/greybus/es1.c
index
f049d65
..
2b4bb07
100644
(file)
--- a/
drivers/staging/greybus/es1.c
+++ b/
drivers/staging/greybus/es1.c
@@
-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));