Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spec-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
fmc-projects
spec
spec-sw
Commits
01c0c843
Commit
01c0c843
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
fmc.h: added {sg}et_drvdata()
parent
31f87d0f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/include/linux/fmc.h
+12
-0
12 additions, 0 deletions
kernel/include/linux/fmc.h
with
12 additions
and
0 deletions
kernel/include/linux/fmc.h
+
12
−
0
View file @
01c0c843
...
...
@@ -75,6 +75,18 @@ static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off)
writel
(
val
,
fmc
->
base
+
off
);
}
/* pci-like naming */
static
inline
void
*
fmc_get_drvdata
(
struct
fmc_device
*
fmc
)
{
return
dev_get_drvdata
(
&
fmc
->
dev
);
}
static
inline
void
fmc_set_drvdata
(
struct
fmc_device
*
fmc
,
void
*
data
)
{
dev_set_drvdata
(
&
fmc
->
dev
,
data
);
}
/* The 4 access points */
extern
int
fmc_driver_register
(
struct
fmc_driver
*
drv
);
extern
void
fmc_driver_unregister
(
struct
fmc_driver
*
drv
);
extern
int
fmc_device_register
(
struct
fmc_device
*
tdev
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment