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
d72ab599
Commit
d72ab599
authored
Feb 25, 2016
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm: make iommu port names const'ier
Signed-off-by:
Rob Clark
<
robdclark@gmail.com
>
parent
4103eef9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
drivers/gpu/drm/msm/msm_iommu.c
drivers/gpu/drm/msm/msm_iommu.c
+4
-2
drivers/gpu/drm/msm/msm_mmu.h
drivers/gpu/drm/msm/msm_mmu.h
+2
-2
No files found.
drivers/gpu/drm/msm/msm_iommu.c
View file @
d72ab599
...
...
@@ -31,13 +31,15 @@ static int msm_fault_handler(struct iommu_domain *iommu, struct device *dev,
return
0
;
}
static
int
msm_iommu_attach
(
struct
msm_mmu
*
mmu
,
const
char
**
names
,
int
cnt
)
static
int
msm_iommu_attach
(
struct
msm_mmu
*
mmu
,
const
char
*
const
*
names
,
int
cnt
)
{
struct
msm_iommu
*
iommu
=
to_msm_iommu
(
mmu
);
return
iommu_attach_device
(
iommu
->
domain
,
mmu
->
dev
);
}
static
void
msm_iommu_detach
(
struct
msm_mmu
*
mmu
,
const
char
**
names
,
int
cnt
)
static
void
msm_iommu_detach
(
struct
msm_mmu
*
mmu
,
const
char
*
const
*
names
,
int
cnt
)
{
struct
msm_iommu
*
iommu
=
to_msm_iommu
(
mmu
);
iommu_detach_device
(
iommu
->
domain
,
mmu
->
dev
);
...
...
drivers/gpu/drm/msm/msm_mmu.h
View file @
d72ab599
...
...
@@ -21,8 +21,8 @@
#include <linux/iommu.h>
struct
msm_mmu_funcs
{
int
(
*
attach
)(
struct
msm_mmu
*
mmu
,
const
char
**
names
,
int
cnt
);
void
(
*
detach
)(
struct
msm_mmu
*
mmu
,
const
char
**
names
,
int
cnt
);
int
(
*
attach
)(
struct
msm_mmu
*
mmu
,
const
char
*
const
*
names
,
int
cnt
);
void
(
*
detach
)(
struct
msm_mmu
*
mmu
,
const
char
*
const
*
names
,
int
cnt
);
int
(
*
map
)(
struct
msm_mmu
*
mmu
,
uint32_t
iova
,
struct
sg_table
*
sgt
,
unsigned
len
,
int
prot
);
int
(
*
unmap
)(
struct
msm_mmu
*
mmu
,
uint32_t
iova
,
struct
sg_table
*
sgt
,
...
...
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