Commit a22e15a1 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: interpret descriptor type properly

The type field in a manifest descriptor header is in little endian
format.  Make sure we interpret it that way.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent a5808add
......@@ -398,7 +398,7 @@ struct greybus_device *greybus_new_module(struct device *parent,
desc = (struct greybus_descriptor *)data;
desc_size = le16_to_cpu(desc->header.size);
switch (desc->header.type) {
switch (le16_to_cpu(desc->header.type)) {
case GREYBUS_TYPE_FUNCTION:
retval = create_function(gdev, desc, desc_size);
break;
......
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