summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-08-03 14:09:30 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-03 15:42:38 +0200
commit06d8b7d9cf37c323aae23bfe97eabdebf0e94ce7 (patch)
tree97a2c9462974c86dc112f83ecba27b248ec9d66e /drivers/staging/greybus/connection.c
parent081ee14ab4452bbf7bab9b4df61519bb48a44375 (diff)
downloadop-kernel-dev-06d8b7d9cf37c323aae23bfe97eabdebf0e94ce7.zip
op-kernel-dev-06d8b7d9cf37c323aae23bfe97eabdebf0e94ce7.tar.gz
greybus: connection: fix offloaded-connection ping cport id
The host-device cport_ping callback expects the AP side cport id, but was incorrectly passed the interface cport id. Note that no host-device driver currently implements this callback, and that it is soon even to be removed. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index 634c8b1..ce8ba9c 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -527,7 +527,7 @@ static int gb_connection_ping(struct gb_connection *connection)
if (!hd->driver->cport_ping)
return 0;
- ret = hd->driver->cport_ping(hd, connection->intf_cport_id);
+ ret = hd->driver->cport_ping(hd, connection->hd_cport_id);
} else {
ret = gb_connection_ping_operation(connection);
}
OpenPOWER on IntegriCloud