Greybus spec was updated to make the length field a single byte. Update
the type and remove endian handling of that field in the core.
Signed-off-by: Matt Porter <mporter@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
return -EINVAL;
}
- string_size = le16_to_cpu(string->length);
+ string_size = string->length;
gmod_string = kzalloc(sizeof(*gmod_string) + string_size + 1, GFP_KERNEL);
if (!gmod_string)
return -ENOMEM;
};
struct greybus_descriptor_string {
- __le16 length;
+ __u8 length;
__u8 id;
__u8 string[0];
};