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
eae4b51b
Commit
eae4b51b
authored
Mar 14, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/topic/introspection' into regmap-next
Simple add/add conflict: drivers/base/regmap/regmap.c
parents
4a6be7bb
a6539c32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+15
-0
include/linux/regmap.h
include/linux/regmap.h
+1
-0
No files found.
drivers/base/regmap/regmap.c
View file @
eae4b51b
...
...
@@ -844,6 +844,21 @@ int regmap_register_patch(struct regmap *map, const struct reg_default *regs,
}
EXPORT_SYMBOL_GPL
(
regmap_register_patch
);
/*
* regmap_get_val_bytes(): Report the size of a register value
*
* Report the size of a register value, mainly intended to for use by
* generic infrastructure built on top of regmap.
*/
int
regmap_get_val_bytes
(
struct
regmap
*
map
)
{
if
(
map
->
format
.
format_write
)
return
-
EINVAL
;
return
map
->
format
.
val_bytes
;
}
EXPORT_SYMBOL_GPL
(
regmap_get_val_bytes
);
static
int
__init
regmap_initcall
(
void
)
{
regmap_debugfs_initcall
();
...
...
include/linux/regmap.h
View file @
eae4b51b
...
...
@@ -156,6 +156,7 @@ int regmap_update_bits(struct regmap *map, unsigned int reg,
int
regmap_update_bits_check
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
mask
,
unsigned
int
val
,
bool
*
change
);
int
regmap_get_val_bytes
(
struct
regmap
*
map
);
int
regcache_sync
(
struct
regmap
*
map
);
int
regcache_sync_region
(
struct
regmap
*
map
,
unsigned
int
min
,
...
...
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