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
13c8d9cd
Commit
13c8d9cd
authored
Sep 14, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: add test_sink driver
parent
45f3678b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
drivers/staging/greybus/Makefile
drivers/staging/greybus/Makefile
+1
-0
drivers/staging/greybus/test_sink.c
drivers/staging/greybus/test_sink.c
+38
-0
No files found.
drivers/staging/greybus/Makefile
View file @
13c8d9cd
...
@@ -11,6 +11,7 @@ greybus-y := core.o \
...
@@ -11,6 +11,7 @@ greybus-y := core.o \
obj-m
+=
greybus.o
obj-m
+=
greybus.o
obj-m
+=
es1-ap-usb.o
obj-m
+=
es1-ap-usb.o
obj-m
+=
test_sink.o
KERNELVER
?=
$(
shell
uname
-r
)
KERNELVER
?=
$(
shell
uname
-r
)
KERNELDIR
?=
/lib/modules/
$(KERNELVER)
/build
KERNELDIR
?=
/lib/modules/
$(KERNELVER)
/build
...
...
drivers/staging/greybus/test_sink.c
0 → 100644
View file @
13c8d9cd
/*
* Test "sink" Greybus driver.
*
* Copyright 2014 Google Inc.
*
* Released under the GPLv2 only.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include "greybus.h"
struct
test_device
{
struct
greybus_device
*
gdev
;
};
int
gb_register_cport_complete
(
struct
greybus_device
*
gdev
,
gbuf_complete_t
handler
,
int
cport
,
void
*
context
);
void
gb_deregister_cport_complete
(
int
cport
);
static
int
test_init
(
void
)
{
return
0
;
}
static
void
test_exit
(
void
)
{
}
module_init
(
test_init
);
module_exit
(
test_exit
);
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
);
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