Commit 3772f161 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: header file s/u8/__u8/g

parent 80ebe8a6
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
struct greybus_decriptor_block_header { struct greybus_decriptor_block_header {
__le16 size; __le16 size;
u8 version_major; __u8 version_major;
u8 version_minor; __u8 version_minor;
}; };
enum greybus_descriptor_type { enum greybus_descriptor_type {
...@@ -35,8 +35,8 @@ struct greybus_descriptor_deviceid { ...@@ -35,8 +35,8 @@ struct greybus_descriptor_deviceid {
__le16 vendor; __le16 vendor;
__le16 product; __le16 product;
__le16 version; __le16 version;
u8 vendor_stringid; __u8 vendor_stringid;
u8 product_stringid; __u8 product_stringid;
}; };
struct greybus_descriptor_serial_number { struct greybus_descriptor_serial_number {
...@@ -44,15 +44,15 @@ struct greybus_descriptor_serial_number { ...@@ -44,15 +44,15 @@ struct greybus_descriptor_serial_number {
}; };
struct greybus_descriptor_string { struct greybus_descriptor_string {
u8 id; __u8 id;
__le16 length; __le16 length;
u8 string[0]; __u8 string[0];
}; };
struct greybus_descriptor_cport { struct greybus_descriptor_cport {
__le16 number; __le16 number;
u8 speed; // FIXME __u8 speed; // FIXME
u8 reserved; __u8 reserved;
}; };
enum greybus_function_class { enum greybus_function_class {
...@@ -75,10 +75,10 @@ enum greybus_function_class { ...@@ -75,10 +75,10 @@ enum greybus_function_class {
struct greybus_descriptor_function { struct greybus_descriptor_function {
__le16 number; __le16 number;
__le16 cport; __le16 cport;
u8 function_class; /* enum greybus_function_class */ __u8 function_class; /* enum greybus_function_class */
u8 function_subclass; __u8 function_subclass;
u8 function_protocol; __u8 function_protocol;
u8 reserved; __u8 reserved;
}; };
struct greybus_msg_descriptor { struct greybus_msg_descriptor {
......
...@@ -21,10 +21,10 @@ enum svc_function_type { ...@@ -21,10 +21,10 @@ enum svc_function_type {
}; };
struct svc_msg_header { struct svc_msg_header {
u8 function; __u8 function;
u8 type; /* enum svc_function_type */ __u8 type; /* enum svc_function_type */
u8 version_major; __u8 version_major;
u8 version_minor; __u8 version_minor;
__le16 payload_length; __le16 payload_length;
}; };
...@@ -35,18 +35,18 @@ enum svc_function_handshake_type { ...@@ -35,18 +35,18 @@ enum svc_function_handshake_type {
}; };
struct svc_function_handshake { struct svc_function_handshake {
u8 handshake_type; /* enum svc_function_handshake_type */ __u8 handshake_type; /* enum svc_function_handshake_type */
}; };
struct svc_function_unipro_set_route { struct svc_function_unipro_set_route {
u8 source_device_id; __u8 source_device_id;
u8 source_cport_id; __u8 source_cport_id;
u8 destination_device_id; __u8 destination_device_id;
u8 destination_cport_id; __u8 destination_cport_id;
}; };
struct svc_function_unipro_link_up { struct svc_function_unipro_link_up {
u8 device_id; __u8 device_id;
}; };
enum svc_function_management_event { enum svc_function_management_event {
...@@ -55,7 +55,7 @@ enum svc_function_management_event { ...@@ -55,7 +55,7 @@ enum svc_function_management_event {
}; };
struct svc_function_unipro_management { struct svc_function_unipro_management {
u8 management_packet_type; /* enum svc_function_management_event */ __u8 management_packet_type; /* enum svc_function_management_event */
union { union {
struct svc_function_unipro_set_route set_route; struct svc_function_unipro_set_route set_route;
struct svc_function_unipro_link_up link_up; struct svc_function_unipro_link_up link_up;
...@@ -68,8 +68,8 @@ enum svc_function_hotplug_event { ...@@ -68,8 +68,8 @@ enum svc_function_hotplug_event {
}; };
struct svc_function_hotplug { struct svc_function_hotplug {
u8 hotplug_event; /* enum svc_function_hotplug_event */ __u8 hotplug_event; /* enum svc_function_hotplug_event */
u8 device_id; __u8 device_id;
}; };
enum svc_function_ddb_type { enum svc_function_ddb_type {
...@@ -78,19 +78,19 @@ enum svc_function_ddb_type { ...@@ -78,19 +78,19 @@ enum svc_function_ddb_type {
}; };
struct svc_function_ddb_get { struct svc_function_ddb_get {
u8 device_id; __u8 device_id;
u8 message_id; __u8 message_id;
}; };
struct svc_function_ddb_response { struct svc_function_ddb_response {
u8 device_id; __u8 device_id;
u8 message_id; __u8 message_id;
__le16 descriptor_length; __le16 descriptor_length;
u8 ddb[0]; __u8 ddb[0];
}; };
struct svc_function_ddb { struct svc_function_ddb {
u8 ddb_type; /* enum svc_function_ddb_type */ __u8 ddb_type; /* enum svc_function_ddb_type */
union { union {
struct svc_function_ddb_get ddb_get; struct svc_function_ddb_get ddb_get;
struct svc_function_ddb_response ddb_response; struct svc_function_ddb_response ddb_response;
...@@ -113,16 +113,16 @@ enum svc_function_battery_status { ...@@ -113,16 +113,16 @@ enum svc_function_battery_status {
struct svc_function_power_battery_status { struct svc_function_power_battery_status {
__le16 charge_full; __le16 charge_full;
__le16 charge_now; __le16 charge_now;
u8 status; /* enum svc_function_battery_status */ __u8 status; /* enum svc_function_battery_status */
}; };
struct svc_function_power_battery_status_request { struct svc_function_power_battery_status_request {
u8 epm_command_type; /* enum svc_function_epm_command_type */ __u8 epm_command_type; /* enum svc_function_epm_command_type */
u8 device_id; __u8 device_id;
}; };
struct svc_function_power { struct svc_function_power {
u8 power_type; /* enum svc_function_power_type */ __u8 power_type; /* enum svc_function_power_type */
union { union {
struct svc_function_power_battery_status status; struct svc_function_power_battery_status status;
struct svc_function_power_battery_status_request request; struct svc_function_power_battery_status_request request;
...@@ -135,8 +135,8 @@ enum svc_function_epm_command_type { ...@@ -135,8 +135,8 @@ enum svc_function_epm_command_type {
}; };
struct svc_function_epm { struct svc_function_epm {
u8 epm_command_type; /* enum svc_function_epm_command_type */ __u8 epm_command_type; /* enum svc_function_epm_command_type */
u8 device_id; __u8 device_id;
}; };
enum svc_function_suspend_command_type { enum svc_function_suspend_command_type {
...@@ -145,8 +145,8 @@ enum svc_function_suspend_command_type { ...@@ -145,8 +145,8 @@ enum svc_function_suspend_command_type {
}; };
struct svc_function_suspend { struct svc_function_suspend {
u8 suspend_command_type; /* enum function_suspend_command_type */ __u8 suspend_command_type; /* enum function_suspend_command_type */
u8 device_id; __u8 device_id;
}; };
struct svc_msg { struct svc_msg {
......
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