greybus: interface: make interfaces children of host devices
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:04 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 25 Nov 2015 23:27:06 +0000 (15:27 -0800)
commit8b0df4b2eaf2f741ae44e8f5bad4ecb223f87932
treed41ab2630f80140f4ddbed6cd33cc7988347d1a7
parent582b3a13920c71ca6e546598d344dc6027168e64
greybus: interface: make interfaces children of host devices

Make interfaces child devices of host devices.

The new interface device name is "<bus_id>-<intf_id>", where bus_id is
the dynamically allocated bus id for the host device and intf_id is the
svc-allocated interface id.

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