Commit 8e2e22d7 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: drop module descriptors

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent a93db2d1
...@@ -22,7 +22,6 @@ enum greybus_descriptor_type { ...@@ -22,7 +22,6 @@ enum greybus_descriptor_type {
GREYBUS_TYPE_BUNDLE = 0x03, GREYBUS_TYPE_BUNDLE = 0x03,
GREYBUS_TYPE_CPORT = 0x04, GREYBUS_TYPE_CPORT = 0x04,
GREYBUS_TYPE_CLASS = 0x05, GREYBUS_TYPE_CLASS = 0x05,
GREYBUS_TYPE_MODULE = 0x06,
}; };
enum greybus_protocol { enum greybus_protocol {
...@@ -69,19 +68,6 @@ enum greybus_class_type { ...@@ -69,19 +68,6 @@ enum greybus_class_type {
GREYBUS_CLASS_VENDOR = 0xff, GREYBUS_CLASS_VENDOR = 0xff,
}; };
/*
* A module descriptor describes information about a module as a
* whole, *not* the functions within it.
*/
struct greybus_descriptor_module {
__le16 vendor;
__le16 product;
__le16 version; // TODO - remove after Dec demo.
__u8 vendor_stringid;
__u8 product_stringid;
__le64 unique_id;
};
/* /*
* The string in a string descriptor is not NUL-terminated. The * The string in a string descriptor is not NUL-terminated. The
* size of the descriptor will be rounded up to a multiple of 4 * size of the descriptor will be rounded up to a multiple of 4
...@@ -158,7 +144,6 @@ struct greybus_descriptor_header { ...@@ -158,7 +144,6 @@ struct greybus_descriptor_header {
struct greybus_descriptor { struct greybus_descriptor {
struct greybus_descriptor_header header; struct greybus_descriptor_header header;
union { union {
struct greybus_descriptor_module module;
struct greybus_descriptor_string string; struct greybus_descriptor_string string;
struct greybus_descriptor_interface interface; struct greybus_descriptor_interface interface;
struct greybus_descriptor_bundle bundle; struct greybus_descriptor_bundle bundle;
......
...@@ -18,8 +18,6 @@ static const char *get_descriptor_type_string(u8 type) ...@@ -18,8 +18,6 @@ static const char *get_descriptor_type_string(u8 type)
switch(type) { switch(type) {
case GREYBUS_TYPE_INVALID: case GREYBUS_TYPE_INVALID:
return "invalid"; return "invalid";
case GREYBUS_TYPE_MODULE:
return "module";
case GREYBUS_TYPE_STRING: case GREYBUS_TYPE_STRING:
return "string"; return "string";
case GREYBUS_TYPE_INTERFACE: case GREYBUS_TYPE_INTERFACE:
...@@ -99,9 +97,6 @@ static int identify_descriptor(struct gb_interface *intf, ...@@ -99,9 +97,6 @@ static int identify_descriptor(struct gb_interface *intf,
expected_size = sizeof(*desc_header); expected_size = sizeof(*desc_header);
switch (desc_header->type) { switch (desc_header->type) {
case GREYBUS_TYPE_MODULE:
expected_size += sizeof(struct greybus_descriptor_module);
break;
case GREYBUS_TYPE_STRING: case GREYBUS_TYPE_STRING:
expected_size += sizeof(struct greybus_descriptor_string); expected_size += sizeof(struct greybus_descriptor_string);
expected_size += desc->string.length; expected_size += desc->string.length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment