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
b57b0624
Commit
b57b0624
authored
Sep 13, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: ap: cleanup of process ap message loop
parent
88929c59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
drivers/staging/greybus/ap.c
drivers/staging/greybus/ap.c
+5
-17
No files found.
drivers/staging/greybus/ap.c
View file @
b57b0624
...
@@ -169,10 +169,14 @@ static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg)
...
@@ -169,10 +169,14 @@ static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg)
return
svc_msg
;
return
svc_msg
;
}
}
static
void
process_ap_message
(
struct
ap_msg
*
ap_msg
)
static
void
ap_process_event
(
struct
work_struct
*
work
)
{
{
struct
svc_msg
*
svc_msg
;
struct
svc_msg
*
svc_msg
;
struct
greybus_host_device
*
hd
;
struct
greybus_host_device
*
hd
;
struct
ap_msg
*
ap_msg
;
ap_msg
=
container_of
(
work
,
struct
ap_msg
,
event
);
hd
=
ap_msg
->
hd
;
/* Turn the "raw" data into a real message */
/* Turn the "raw" data into a real message */
svc_msg
=
convert_ap_message
(
ap_msg
);
svc_msg
=
convert_ap_message
(
ap_msg
);
...
@@ -181,11 +185,6 @@ static void process_ap_message(struct ap_msg *ap_msg)
...
@@ -181,11 +185,6 @@ static void process_ap_message(struct ap_msg *ap_msg)
return
;
return
;
}
}
hd
=
ap_msg
->
hd
;
/* Pass the message to the host controller */
// ap_msg->hd->driver->ap_msg(svc_msg, ap_msg->hd);
/* Look at the message to figure out what to do with it */
/* Look at the message to figure out what to do with it */
switch
(
svc_msg
->
header
.
type
)
{
switch
(
svc_msg
->
header
.
type
)
{
case
SVC_FUNCTION_HANDSHAKE
:
case
SVC_FUNCTION_HANDSHAKE
:
...
@@ -214,17 +213,6 @@ static void process_ap_message(struct ap_msg *ap_msg)
...
@@ -214,17 +213,6 @@ static void process_ap_message(struct ap_msg *ap_msg)
svc_msg
->
header
.
type
);
svc_msg
->
header
.
type
);
}
}
}
static
void
ap_process_event
(
struct
work_struct
*
work
)
{
struct
ap_msg
*
ap_msg
;
ap_msg
=
container_of
(
work
,
struct
ap_msg
,
event
);
process_ap_message
(
ap_msg
);
/* clean the message up */
/* clean the message up */
kfree
(
ap_msg
->
data
);
kfree
(
ap_msg
->
data
);
kfree
(
ap_msg
);
kfree
(
ap_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