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
9ef68841
Commit
9ef68841
authored
Oct 21, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regmap-4.20' into regmap-next
parents
35a7f35a
95093762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+12
-6
No files found.
drivers/base/regmap/regmap.c
View file @
9ef68841
...
...
@@ -35,6 +35,16 @@
*/
#undef LOG_DEVICE
#ifdef LOG_DEVICE
static
inline
bool
regmap_should_log
(
struct
regmap
*
map
)
{
return
(
map
->
dev
&&
strcmp
(
dev_name
(
map
->
dev
),
LOG_DEVICE
)
==
0
);
}
#else
static
inline
bool
regmap_should_log
(
struct
regmap
*
map
)
{
return
false
;
}
#endif
static
int
_regmap_update_bits
(
struct
regmap
*
map
,
unsigned
int
reg
,
unsigned
int
mask
,
unsigned
int
val
,
bool
*
change
,
bool
force_write
);
...
...
@@ -1755,10 +1765,8 @@ int _regmap_write(struct regmap *map, unsigned int reg,
}
}
#ifdef LOG_DEVICE
if
(
map
->
dev
&&
strcmp
(
dev_name
(
map
->
dev
),
LOG_DEVICE
)
==
0
)
if
(
regmap_should_log
(
map
))
dev_info
(
map
->
dev
,
"%x <= %x
\n
"
,
reg
,
val
);
#endif
trace_regmap_reg_write
(
map
,
reg
,
val
);
...
...
@@ -2450,10 +2458,8 @@ static int _regmap_read(struct regmap *map, unsigned int reg,
ret
=
map
->
reg_read
(
context
,
reg
,
val
);
if
(
ret
==
0
)
{
#ifdef LOG_DEVICE
if
(
map
->
dev
&&
strcmp
(
dev_name
(
map
->
dev
),
LOG_DEVICE
)
==
0
)
if
(
regmap_should_log
(
map
))
dev_info
(
map
->
dev
,
"%x => %x
\n
"
,
reg
,
*
val
);
#endif
trace_regmap_reg_read
(
map
,
reg
,
*
val
);
...
...
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