greybus: manifest: Use interface descriptor instead of module descriptor to get infor...
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 1 Apr 2015 15:02:02 +0000 (20:32 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 6 Apr 2015 10:05:58 +0000 (12:05 +0200)
commita93db2d1f6939bf260dbdf0d32a20eda3ad2e620
tree640f46ca7bbd4830d7e73361aec662a3bdae0586
parentbb97ea813b1c31a0fc78af3d06a8dbd793ea372b
greybus: manifest: Use interface descriptor instead of module descriptor to get information

A module can have more than one interfaces and we get hotplug events or
manifests for interfaces, not modules. Details like version, vendor,
product id, etc. can be different for different interfaces within the
same module and so shall be fetched from interface descriptor instead of
module descriptor.

So what we have been doing for module descriptors until now must be done
for interface descriptors. There can only be one interface descriptor in
the manifest. Module descriptor isn't used anymore and probably most of
its fields can be removed now.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_manifest.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h
drivers/staging/greybus/manifest.c
drivers/staging/greybus/manifest.h