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
776f136c
Commit
776f136c
authored
Aug 11, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: greybus.h: tiny coding style cleanups
parent
53419e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/staging/greybus/greybus.h
drivers/staging/greybus/greybus.h
+7
-7
No files found.
drivers/staging/greybus/greybus.h
View file @
776f136c
...
@@ -45,12 +45,12 @@ struct greybus_device {
...
@@ -45,12 +45,12 @@ struct greybus_device {
struct
greybus_driver
{
struct
greybus_driver
{
const
char
*
name
;
const
char
*
name
;
int
(
*
probe
)
(
struct
greybus_device
*
gdev
,
int
(
*
probe
)(
struct
greybus_device
*
gdev
,
const
struct
greybus_device_id
*
id
);
const
struct
greybus_device_id
*
id
);
void
(
*
disconnect
)
(
struct
greybus_device
*
gdev
);
void
(
*
disconnect
)(
struct
greybus_device
*
gdev
);
int
(
*
suspend
)
(
struct
greybus_device
*
gdev
,
pm_message_t
message
);
int
(
*
suspend
)(
struct
greybus_device
*
gdev
,
pm_message_t
message
);
int
(
*
resume
)
(
struct
greybus_device
*
gdev
);
int
(
*
resume
)(
struct
greybus_device
*
gdev
);
const
struct
greybus_device_id
*
id_table
;
const
struct
greybus_device_id
*
id_table
;
...
@@ -60,12 +60,12 @@ struct greybus_driver {
...
@@ -60,12 +60,12 @@ struct greybus_driver {
static
inline
void
greybus_set_drvdata
(
struct
greybus_device
*
gdev
,
void
*
data
)
static
inline
void
greybus_set_drvdata
(
struct
greybus_device
*
gdev
,
void
*
data
)
{
{
dev_set_drvdata
(
&
gdev
->
dev
,
data
);
dev_set_drvdata
(
&
gdev
->
dev
,
data
);
}
}
static
inline
void
*
greybus_get_drvdata
(
struct
greybus_device
*
gdev
)
static
inline
void
*
greybus_get_drvdata
(
struct
greybus_device
*
gdev
)
{
{
return
dev_get_drvdata
(
&
gdev
->
dev
);
return
dev_get_drvdata
(
&
gdev
->
dev
);
}
}
/* Don't call these directly, use the module_greybus_driver() macro instead */
/* Don't call these directly, use the module_greybus_driver() macro instead */
...
...
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