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
21cf3318
Commit
21cf3318
authored
Nov 07, 2014
by
Laurentiu Palcu
Committed by
Lee Jones
Nov 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfd: dln2: add support for USB-SPI module
Signed-off-by:
Laurentiu Palcu
<
laurentiu.palcu@intel.com
>
parent
783f6fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
drivers/mfd/dln2.c
drivers/mfd/dln2.c
+12
-0
No files found.
drivers/mfd/dln2.c
View file @
21cf3318
...
...
@@ -52,6 +52,7 @@ enum dln2_handle {
DLN2_HANDLE_CTRL
,
DLN2_HANDLE_GPIO
,
DLN2_HANDLE_I2C
,
DLN2_HANDLE_SPI
,
DLN2_HANDLES
};
...
...
@@ -640,6 +641,12 @@ static struct dln2_platform_data dln2_pdata_i2c = {
.
port
=
0
,
};
/* Only one SPI port supported */
static
struct
dln2_platform_data
dln2_pdata_spi
=
{
.
handle
=
DLN2_HANDLE_SPI
,
.
port
=
0
,
};
static
const
struct
mfd_cell
dln2_devs
[]
=
{
{
.
name
=
"dln2-gpio"
,
...
...
@@ -651,6 +658,11 @@ static const struct mfd_cell dln2_devs[] = {
.
platform_data
=
&
dln2_pdata_i2c
,
.
pdata_size
=
sizeof
(
struct
dln2_platform_data
),
},
{
.
name
=
"dln2-spi"
,
.
platform_data
=
&
dln2_pdata_spi
,
.
pdata_size
=
sizeof
(
struct
dln2_platform_data
),
},
};
static
void
dln2_disconnect
(
struct
usb_interface
*
interface
)
...
...
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