]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: descriptor type is 1 byte
authorAlex Elder <elder@linaro.org>
Sat, 27 Sep 2014 01:55:33 +0000 (20:55 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 30 Sep 2014 01:07:22 +0000 (18:07 -0700)
The spec was changed to require only one byte to represent the
type of a module descriptor.  Update our data type and the values
used to reflect that.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/greybus_manifest.h

index 75dea816fa694454eca43f8e75164942a5730c78..0867054045369622c722915d794b4499ec4b0102 100644 (file)
@@ -21,17 +21,17 @@ struct greybus_manifest_header {
 };
 
 enum greybus_descriptor_type {
-       GREYBUS_TYPE_INVALID            = 0x0000,
-       GREYBUS_TYPE_MODULE             = 0x0001,
-       GREYBUS_TYPE_FUNCTION           = 0x0002,
-       GREYBUS_TYPE_CLASS              = 0x0003,
-       GREYBUS_TYPE_STRING             = 0x0004,
-       GREYBUS_TYPE_CPORT              = 0x0005,
+       GREYBUS_TYPE_INVALID            = 0x00,
+       GREYBUS_TYPE_MODULE             = 0x01,
+       GREYBUS_TYPE_FUNCTION           = 0x02,
+       GREYBUS_TYPE_CLASS              = 0x03,
+       GREYBUS_TYPE_STRING             = 0x04,
+       GREYBUS_TYPE_CPORT              = 0x05,
 };
 
 struct greybus_descriptor_header {
        __le16  size;
-       __le16  type;   /* enum greybus_descriptor_type */
+       __u8    type;   /* enum greybus_descriptor_type */
 };
 
 enum greybus_function_type {