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
nexedi
linux
Commits
ba4468d4
Commit
ba4468d4
authored
Aug 30, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: initial framework for ES1 usb AP driver
parent
eca17c52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
drivers/staging/greybus/Makefile
drivers/staging/greybus/Makefile
+1
-0
drivers/staging/greybus/es1-ap-usb.c
drivers/staging/greybus/es1-ap-usb.c
+45
-0
No files found.
drivers/staging/greybus/Makefile
View file @
ba4468d4
greybus-y
:=
core.o gbuf.o i2c-gb.o gpio-gb.o sdio-gb.o uart-gb.o
obj-m
+=
greybus.o
obj-m
+=
es1-ap-usb.o
KERNELVER
?=
$(
shell
uname
-r
)
KERNELDIR
?=
/lib/modules/
$(KERNELVER)
/build
...
...
drivers/staging/greybus/es1-ap-usb.c
0 → 100644
View file @
ba4468d4
/*
* Greybus "AP" USB driver
*
* Copyright 2014 Google Inc.
*
* Released under the GPLv2 only.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/usb.h>
static
const
struct
usb_device_id
id_table
[]
=
{
{
USB_DEVICE
(
0x0000
,
0x0000
)
},
// FIXME
{
},
};
MODULE_DEVICE_TABLE
(
usb
,
id_table
);
static
int
ap_probe
(
struct
usb_interface
*
interface
,
const
struct
usb_device_id
*
id
)
{
return
0
;
}
static
void
ap_disconnect
(
struct
usb_interface
*
interface
)
{
}
static
struct
usb_driver
es1_ap_driver
=
{
.
name
=
"es1_ap_driver"
,
.
probe
=
ap_probe
,
.
disconnect
=
ap_disconnect
,
.
id_table
=
id_table
,
};
module_usb_driver
(
es1_ap_driver
);
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