greybus: connection: add name field
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:14 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 25 Nov 2015 23:34:19 +0000 (15:34 -0800)
commit729b260a67e051bcabdd83c8a29fc13c5617cd6b
treec041c51095838ed5fb3403d49ffed98c014248b6
parent4ec1574ae99872a9d1922fb1e57b8d46df4d0920
greybus: connection: add name field

Add a name field to connections that can be used in log messages.

A connection always belongs to a host-device (bus) and can be uniquely
identified by its host-device cport id, but include remote interface and
cport id nonetheless on the following format:

<hd_cport_id>/<intf_id>:<cport_id>

The remote interface and cport id will be zero for static connections.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h