diff options
author | Fabien Parent <fparent@baylibre.com> | 2015-09-02 15:50:35 +0200 |
---|---|---|
committer | Johan Hovold <johan@hovoldconsulting.com> | 2015-09-02 16:21:54 +0200 |
commit | 144670c2ae3f9b452e021a9032b25730d296ba53 (patch) | |
tree | e7dbf67941f3380173139eedc333f6a7b0dc8151 /drivers/staging/greybus/connection.c | |
parent | e074a2e2874aaa96da3e54d98ecb886201d96435 (diff) | |
download | linux-stable-144670c2ae3f9b452e021a9032b25730d296ba53.tar.gz linux-stable-144670c2ae3f9b452e021a9032b25730d296ba53.tar.bz2 linux-stable-144670c2ae3f9b452e021a9032b25730d296ba53.zip |
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>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 7eb28680e498..286e7da3f275 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -311,7 +311,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle, { return gb_connection_create_range(bundle->intf->hd, bundle, &bundle->dev, cport_id, protocol_id, - 0, CPORT_ID_MAX); + 0, bundle->intf->hd->num_cports - 1); } /* |