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
e8b15c01
Commit
e8b15c01
authored
Aug 04, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/topic/getdev' into regmap-next
parents
19583ca5
1d33dc6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+13
-0
include/linux/regmap.h
include/linux/regmap.h
+7
-0
No files found.
drivers/base/regmap/regmap.c
View file @
e8b15c01
...
@@ -1073,6 +1073,19 @@ struct regmap *dev_get_regmap(struct device *dev, const char *name)
...
@@ -1073,6 +1073,19 @@ struct regmap *dev_get_regmap(struct device *dev, const char *name)
}
}
EXPORT_SYMBOL_GPL
(
dev_get_regmap
);
EXPORT_SYMBOL_GPL
(
dev_get_regmap
);
/**
* regmap_get_device(): Obtain the device from a regmap
*
* @map: Register map to operate on.
*
* Returns the underlying device that the regmap has been created for.
*/
struct
device
*
regmap_get_device
(
struct
regmap
*
map
)
{
return
map
->
dev
;
}
EXPORT_SYMBOL_GPL
(
regmap_get_device
);
static
int
_regmap_select_page
(
struct
regmap
*
map
,
unsigned
int
*
reg
,
static
int
_regmap_select_page
(
struct
regmap
*
map
,
unsigned
int
*
reg
,
struct
regmap_range_node
*
range
,
struct
regmap_range_node
*
range
,
unsigned
int
val_num
)
unsigned
int
val_num
)
...
...
include/linux/regmap.h
View file @
e8b15c01
...
@@ -396,6 +396,7 @@ void regmap_exit(struct regmap *map);
...
@@ -396,6 +396,7 @@ void regmap_exit(struct regmap *map);
int
regmap_reinit_cache
(
struct
regmap
*
map
,
int
regmap_reinit_cache
(
struct
regmap
*
map
,
const
struct
regmap_config
*
config
);
const
struct
regmap_config
*
config
);
struct
regmap
*
dev_get_regmap
(
struct
device
*
dev
,
const
char
*
name
);
struct
regmap
*
dev_get_regmap
(
struct
device
*
dev
,
const
char
*
name
);
struct
device
*
regmap_get_device
(
struct
regmap
*
map
);
int
regmap_write
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
val
);
int
regmap_write
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
val
);
int
regmap_write_async
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
val
);
int
regmap_write_async
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
val
);
int
regmap_raw_write
(
struct
regmap
*
map
,
unsigned
int
reg
,
int
regmap_raw_write
(
struct
regmap
*
map
,
unsigned
int
reg
,
...
@@ -729,6 +730,12 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
...
@@ -729,6 +730,12 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
return
NULL
;
return
NULL
;
}
}
static
inline
struct
device
*
regmap_get_device
(
struct
regmap
*
map
)
{
WARN_ONCE
(
1
,
"regmap API is disabled"
);
return
NULL
;
}
#endif
#endif
#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