OSDN Git Service

greybus: add num_cports field to greybus hd
authorFabien Parent <fparent@baylibre.com>
Wed, 2 Sep 2015 13:50:35 +0000 (15:50 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Wed, 2 Sep 2015 14:21:54 +0000 (16:21 +0200)
commit144670c2ae3f9b452e021a9032b25730d296ba53
treee7dbf67941f3380173139eedc333f6a7b0dc8151
parente074a2e2874aaa96da3e54d98ecb886201d96435
greybus: add num_cports field to greybus hd

This commit is doing the preparation work in order to get the number of cports
supported from the UniPro IP instead of using a constant defined in a Kconfig
file.

Greybus host device is now holding the cport count, and all the code will now
use this value instead of the constant CPORT_ID_MAX when referring to an AP's
CPort ID.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
[johan: es1 supports 256 cports, minor style changes ]
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/core.c
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/interface.c