OSDN Git Service

greybus: es2: dynamically allocate array for cport <-> ep mapping
authorFabien Parent <fparent@baylibre.com>
Wed, 2 Sep 2015 13:50:36 +0000 (15:50 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Wed, 2 Sep 2015 14:24:49 +0000 (16:24 +0200)
commitc011d558e19aa9b6bb739426f5553bf3e1ad5a69
treeee7753d1706c4d632cb821ccd0f92e2b3c081ef9
parent144670c2ae3f9b452e021a9032b25730d296ba53
greybus: es2: dynamically allocate array for cport <-> ep mapping

In order to be able to dynamically determine the number of CPorts supported
by the UniPro IP instead of hardcoding the value we need to dynamically
allocate the array that is doing the cport-ep mapping.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/es2.c