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
56e8e1a1
Commit
56e8e1a1
authored
Dec 31, 2018
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/sa11x0' into for-linus
parents
68ded1dc
bc822e80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
37 deletions
+8
-37
drivers/dma/sa11x0-dma.c
drivers/dma/sa11x0-dma.c
+8
-13
include/linux/sa11x0-dma.h
include/linux/sa11x0-dma.h
+0
-24
No files found.
drivers/dma/sa11x0-dma.c
View file @
56e8e1a1
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/sa11x0-dma.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/spinlock.h>
...
@@ -830,6 +829,14 @@ static const struct dma_slave_map sa11x0_dma_map[] = {
...
@@ -830,6 +829,14 @@ static const struct dma_slave_map sa11x0_dma_map[] = {
{
"sa11x0-ssp"
,
"rx"
,
"Ser4SSPRc"
},
{
"sa11x0-ssp"
,
"rx"
,
"Ser4SSPRc"
},
};
};
static
bool
sa11x0_dma_filter_fn
(
struct
dma_chan
*
chan
,
void
*
param
)
{
struct
sa11x0_dma_chan
*
c
=
to_sa11x0_dma_chan
(
chan
);
const
char
*
p
=
param
;
return
!
strcmp
(
c
->
name
,
p
);
}
static
int
sa11x0_dma_init_dmadev
(
struct
dma_device
*
dmadev
,
static
int
sa11x0_dma_init_dmadev
(
struct
dma_device
*
dmadev
,
struct
device
*
dev
)
struct
device
*
dev
)
{
{
...
@@ -1087,18 +1094,6 @@ static struct platform_driver sa11x0_dma_driver = {
...
@@ -1087,18 +1094,6 @@ static struct platform_driver sa11x0_dma_driver = {
.
remove
=
sa11x0_dma_remove
,
.
remove
=
sa11x0_dma_remove
,
};
};
bool
sa11x0_dma_filter_fn
(
struct
dma_chan
*
chan
,
void
*
param
)
{
if
(
chan
->
device
->
dev
->
driver
==
&
sa11x0_dma_driver
.
driver
)
{
struct
sa11x0_dma_chan
*
c
=
to_sa11x0_dma_chan
(
chan
);
const
char
*
p
=
param
;
return
!
strcmp
(
c
->
name
,
p
);
}
return
false
;
}
EXPORT_SYMBOL
(
sa11x0_dma_filter_fn
);
static
int
__init
sa11x0_dma_init
(
void
)
static
int
__init
sa11x0_dma_init
(
void
)
{
{
return
platform_driver_register
(
&
sa11x0_dma_driver
);
return
platform_driver_register
(
&
sa11x0_dma_driver
);
...
...
include/linux/sa11x0-dma.h
deleted
100644 → 0
View file @
68ded1dc
/*
* SA11x0 DMA Engine support
*
* Copyright (C) 2012 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __LINUX_SA11X0_DMA_H
#define __LINUX_SA11X0_DMA_H
struct
dma_chan
;
#if defined(CONFIG_DMA_SA11X0) || defined(CONFIG_DMA_SA11X0_MODULE)
bool
sa11x0_dma_filter_fn
(
struct
dma_chan
*
,
void
*
);
#else
static
inline
bool
sa11x0_dma_filter_fn
(
struct
dma_chan
*
c
,
void
*
d
)
{
return
false
;
}
#endif
#endif
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