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
e6353328
Commit
e6353328
authored
Jun 02, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/topic/core' into regmap-next
parents
fad01e86
2e804b7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
drivers/base/regmap/regmap-mmio.c
drivers/base/regmap/regmap-mmio.c
+3
-3
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+4
-1
No files found.
drivers/base/regmap/regmap-mmio.c
View file @
e6353328
...
...
@@ -61,9 +61,9 @@ static int regmap_mmio_regbits_check(size_t reg_bits)
}
}
static
inline
void
regmap_mmio_count_check
(
size_t
count
)
static
inline
void
regmap_mmio_count_check
(
size_t
count
,
u32
offset
)
{
BUG_ON
(
count
%
2
!=
0
);
BUG_ON
(
count
<=
offset
);
}
static
int
regmap_mmio_gather_write
(
void
*
context
,
...
...
@@ -120,7 +120,7 @@ static int regmap_mmio_write(void *context, const void *data, size_t count)
struct
regmap_mmio_context
*
ctx
=
context
;
u32
offset
=
ctx
->
reg_bytes
+
ctx
->
pad_bytes
;
regmap_mmio_count_check
(
count
);
regmap_mmio_count_check
(
count
,
offset
);
return
regmap_mmio_gather_write
(
context
,
data
,
ctx
->
reg_bytes
,
data
+
offset
,
count
-
offset
);
...
...
drivers/base/regmap/regmap.c
View file @
e6353328
...
...
@@ -1615,6 +1615,9 @@ static int _regmap_raw_multi_reg_write(struct regmap *map,
size_t
pair_size
=
reg_bytes
+
pad_bytes
+
val_bytes
;
size_t
len
=
pair_size
*
num_regs
;
if
(
!
len
)
return
-
EINVAL
;
buf
=
kzalloc
(
len
,
GFP_KERNEL
);
if
(
!
buf
)
return
-
ENOMEM
;
...
...
@@ -1662,7 +1665,7 @@ static int _regmap_range_multi_paged_reg_write(struct regmap *map,
int
ret
;
int
i
,
n
;
struct
reg_default
*
base
;
unsigned
int
this_page
;
unsigned
int
this_page
=
0
;
/*
* the set of registers are not neccessarily in order, but
* since the order of write must be preserved this algorithm
...
...
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