Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3772f161
Commit
3772f161
authored
Sep 01, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: header file s/u8/__u8/g
parent
80ebe8a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
39 deletions
+39
-39
drivers/staging/greybus/greybus_desc.h
drivers/staging/greybus/greybus_desc.h
+12
-12
drivers/staging/greybus/svc_msg.h
drivers/staging/greybus/svc_msg.h
+27
-27
No files found.
drivers/staging/greybus/greybus_desc.h
View file @
3772f161
...
...
@@ -12,8 +12,8 @@
struct
greybus_decriptor_block_header
{
__le16
size
;
u8
version_major
;
u8
version_minor
;
__
u8
version_major
;
__
u8
version_minor
;
};
enum
greybus_descriptor_type
{
...
...
@@ -35,8 +35,8 @@ struct greybus_descriptor_deviceid {
__le16
vendor
;
__le16
product
;
__le16
version
;
u8
vendor_stringid
;
u8
product_stringid
;
__
u8
vendor_stringid
;
__
u8
product_stringid
;
};
struct
greybus_descriptor_serial_number
{
...
...
@@ -44,15 +44,15 @@ struct greybus_descriptor_serial_number {
};
struct
greybus_descriptor_string
{
u8
id
;
__
u8
id
;
__le16
length
;
u8
string
[
0
];
__
u8
string
[
0
];
};
struct
greybus_descriptor_cport
{
__le16
number
;
u8
speed
;
// FIXME
u8
reserved
;
__
u8
speed
;
// FIXME
__
u8
reserved
;
};
enum
greybus_function_class
{
...
...
@@ -75,10 +75,10 @@ enum greybus_function_class {
struct
greybus_descriptor_function
{
__le16
number
;
__le16
cport
;
u8
function_class
;
/* enum greybus_function_class */
u8
function_subclass
;
u8
function_protocol
;
u8
reserved
;
__
u8
function_class
;
/* enum greybus_function_class */
__
u8
function_subclass
;
__
u8
function_protocol
;
__
u8
reserved
;
};
struct
greybus_msg_descriptor
{
...
...
drivers/staging/greybus/svc_msg.h
View file @
3772f161
...
...
@@ -21,10 +21,10 @@ enum svc_function_type {
};
struct
svc_msg_header
{
u8
function
;
u8
type
;
/* enum svc_function_type */
u8
version_major
;
u8
version_minor
;
__
u8
function
;
__
u8
type
;
/* enum svc_function_type */
__
u8
version_major
;
__
u8
version_minor
;
__le16
payload_length
;
};
...
...
@@ -35,18 +35,18 @@ enum svc_function_handshake_type {
};
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
{
u8
source_device_id
;
u8
source_cport_id
;
u8
destination_device_id
;
u8
destination_cport_id
;
__
u8
source_device_id
;
__
u8
source_cport_id
;
__
u8
destination_device_id
;
__
u8
destination_cport_id
;
};
struct
svc_function_unipro_link_up
{
u8
device_id
;
__
u8
device_id
;
};
enum
svc_function_management_event
{
...
...
@@ -55,7 +55,7 @@ enum svc_function_management_event {
};
struct
svc_function_unipro_management
{
u8
management_packet_type
;
/* enum svc_function_management_event */
__
u8
management_packet_type
;
/* enum svc_function_management_event */
union
{
struct
svc_function_unipro_set_route
set_route
;
struct
svc_function_unipro_link_up
link_up
;
...
...
@@ -68,8 +68,8 @@ enum svc_function_hotplug_event {
};
struct
svc_function_hotplug
{
u8
hotplug_event
;
/* enum svc_function_hotplug_event */
u8
device_id
;
__
u8
hotplug_event
;
/* enum svc_function_hotplug_event */
__
u8
device_id
;
};
enum
svc_function_ddb_type
{
...
...
@@ -78,19 +78,19 @@ enum svc_function_ddb_type {
};
struct
svc_function_ddb_get
{
u8
device_id
;
u8
message_id
;
__
u8
device_id
;
__
u8
message_id
;
};
struct
svc_function_ddb_response
{
u8
device_id
;
u8
message_id
;
__
u8
device_id
;
__
u8
message_id
;
__le16
descriptor_length
;
u8
ddb
[
0
];
__
u8
ddb
[
0
];
};
struct
svc_function_ddb
{
u8
ddb_type
;
/* enum svc_function_ddb_type */
__
u8
ddb_type
;
/* enum svc_function_ddb_type */
union
{
struct
svc_function_ddb_get
ddb_get
;
struct
svc_function_ddb_response
ddb_response
;
...
...
@@ -113,16 +113,16 @@ enum svc_function_battery_status {
struct
svc_function_power_battery_status
{
__le16
charge_full
;
__le16
charge_now
;
u8
status
;
/* enum svc_function_battery_status */
__
u8
status
;
/* enum svc_function_battery_status */
};
struct
svc_function_power_battery_status_request
{
u8
epm_command_type
;
/* enum svc_function_epm_command_type */
u8
device_id
;
__
u8
epm_command_type
;
/* enum svc_function_epm_command_type */
__
u8
device_id
;
};
struct
svc_function_power
{
u8
power_type
;
/* enum svc_function_power_type */
__
u8
power_type
;
/* enum svc_function_power_type */
union
{
struct
svc_function_power_battery_status
status
;
struct
svc_function_power_battery_status_request
request
;
...
...
@@ -135,8 +135,8 @@ enum svc_function_epm_command_type {
};
struct
svc_function_epm
{
u8
epm_command_type
;
/* enum svc_function_epm_command_type */
u8
device_id
;
__
u8
epm_command_type
;
/* enum svc_function_epm_command_type */
__
u8
device_id
;
};
enum
svc_function_suspend_command_type
{
...
...
@@ -145,8 +145,8 @@ enum svc_function_suspend_command_type {
};
struct
svc_function_suspend
{
u8
suspend_command_type
;
/* enum function_suspend_command_type */
u8
device_id
;
__
u8
suspend_command_type
;
/* enum function_suspend_command_type */
__
u8
device_id
;
};
struct
svc_msg
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment