greybus: interface: fix interface_id attribute group
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jul 2016 10:48:57 +0000 (12:48 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Jul 2016 17:07:00 +0000 (10:07 -0700)
commitb5d1d1282bbb318a67fdcfc8ef2615e93d1d1724
treec79dd5fec7d9190fe7fde6444d97d6c178a85a45
parent10a24b7c0911d63c7342dfb860e939221b4a9465
greybus: interface: fix interface_id attribute group

All interfaces, regardless of type, should have an interface_id
attribute reflecting its position on the frame.

This has been reported to cause an assertion failure in libmoduleutil
for dummy modules.

Testing done: Verified that the attribute is present for registered
dummy interfaces.

Reported-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Tested-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Reviewed-by: Patrick Titiano <ptitiano@baylibre.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c