Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC Bus
Commits
a16cfe5b
Commit
a16cfe5b
authored
Jul 28, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc.h: added {sg}et_drvdata()
parent
76509eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
fmc.h
kernel/include/linux/fmc.h
+12
-0
No files found.
kernel/include/linux/fmc.h
View file @
a16cfe5b
...
@@ -75,6 +75,18 @@ static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off)
...
@@ -75,6 +75,18 @@ static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off)
writel
(
val
,
fmc
->
base
+
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
int
fmc_driver_register
(
struct
fmc_driver
*
drv
);
extern
void
fmc_driver_unregister
(
struct
fmc_driver
*
drv
);
extern
void
fmc_driver_unregister
(
struct
fmc_driver
*
drv
);
extern
int
fmc_device_register
(
struct
fmc_device
*
tdev
);
extern
int
fmc_device_register
(
struct
fmc_device
*
tdev
);
...
...
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