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
nexedi
linux
Commits
7ff2b193
Commit
7ff2b193
authored
Mar 31, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/fix/cache' into tmp
parents
8bb96604
bc8ce4af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache-rbtree.c
+1
-1
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+1
-2
No files found.
drivers/base/regmap/regcache-rbtree.c
View file @
7ff2b193
...
@@ -398,7 +398,7 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min,
...
@@ -398,7 +398,7 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min,
base
=
0
;
base
=
0
;
if
(
max
<
rbnode
->
base_reg
+
rbnode
->
blklen
)
if
(
max
<
rbnode
->
base_reg
+
rbnode
->
blklen
)
end
=
rbnode
->
base_reg
+
rbnode
->
blklen
-
max
;
end
=
max
-
rbnode
->
base_reg
+
1
;
else
else
end
=
rbnode
->
blklen
;
end
=
rbnode
->
blklen
;
...
...
drivers/base/regmap/regmap.c
View file @
7ff2b193
...
@@ -943,8 +943,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
...
@@ -943,8 +943,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
unsigned
int
ival
;
unsigned
int
ival
;
int
val_bytes
=
map
->
format
.
val_bytes
;
int
val_bytes
=
map
->
format
.
val_bytes
;
for
(
i
=
0
;
i
<
val_len
/
val_bytes
;
i
++
)
{
for
(
i
=
0
;
i
<
val_len
/
val_bytes
;
i
++
)
{
memcpy
(
map
->
work_buf
,
val
+
(
i
*
val_bytes
),
val_bytes
);
ival
=
map
->
format
.
parse_val
(
val
+
(
i
*
val_bytes
));
ival
=
map
->
format
.
parse_val
(
map
->
work_buf
);
ret
=
regcache_write
(
map
,
reg
+
(
i
*
map
->
reg_stride
),
ret
=
regcache_write
(
map
,
reg
+
(
i
*
map
->
reg_stride
),
ival
);
ival
);
if
(
ret
)
{
if
(
ret
)
{
...
...
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