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
652787ab
Commit
652787ab
authored
Nov 26, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'regmap/fix/doc' and 'regmap/fix/mmio' into regmap-linus
parents
a46b6e72
0093380c
6b8e090e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
drivers/base/regmap/regmap-mmio.c
drivers/base/regmap/regmap-mmio.c
+6
-5
drivers/base/regmap/regmap.c
drivers/base/regmap/regmap.c
+3
-3
No files found.
drivers/base/regmap/regmap-mmio.c
View file @
652787ab
...
...
@@ -40,7 +40,7 @@ static int regmap_mmio_gather_write(void *context,
BUG_ON
(
reg_size
!=
4
);
if
(
ctx
->
clk
)
{
if
(
!
IS_ERR
(
ctx
->
clk
)
)
{
ret
=
clk_enable
(
ctx
->
clk
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -73,7 +73,7 @@ static int regmap_mmio_gather_write(void *context,
offset
+=
ctx
->
val_bytes
;
}
if
(
ctx
->
clk
)
if
(
!
IS_ERR
(
ctx
->
clk
)
)
clk_disable
(
ctx
->
clk
);
return
0
;
...
...
@@ -96,7 +96,7 @@ static int regmap_mmio_read(void *context,
BUG_ON
(
reg_size
!=
4
);
if
(
ctx
->
clk
)
{
if
(
!
IS_ERR
(
ctx
->
clk
)
)
{
ret
=
clk_enable
(
ctx
->
clk
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -129,7 +129,7 @@ static int regmap_mmio_read(void *context,
offset
+=
ctx
->
val_bytes
;
}
if
(
ctx
->
clk
)
if
(
!
IS_ERR
(
ctx
->
clk
)
)
clk_disable
(
ctx
->
clk
);
return
0
;
...
...
@@ -139,7 +139,7 @@ static void regmap_mmio_free_context(void *context)
{
struct
regmap_mmio_context
*
ctx
=
context
;
if
(
ctx
->
clk
)
{
if
(
!
IS_ERR
(
ctx
->
clk
)
)
{
clk_unprepare
(
ctx
->
clk
);
clk_put
(
ctx
->
clk
);
}
...
...
@@ -209,6 +209,7 @@ static struct regmap_mmio_context *regmap_mmio_gen_context(struct device *dev,
ctx
->
regs
=
regs
;
ctx
->
val_bytes
=
config
->
val_bits
/
8
;
ctx
->
clk
=
ERR_PTR
(
-
ENODEV
);
if
(
clk_id
==
NULL
)
return
ctx
;
...
...
drivers/base/regmap/regmap.c
View file @
652787ab
...
...
@@ -1743,7 +1743,7 @@ static int _regmap_read(struct regmap *map, unsigned int reg,
/**
* regmap_read(): Read a value from a single register
*
* @map: Register map to
write to
* @map: Register map to
read from
* @reg: Register to be read from
* @val: Pointer to store read value
*
...
...
@@ -1770,7 +1770,7 @@ EXPORT_SYMBOL_GPL(regmap_read);
/**
* regmap_raw_read(): Read raw data from the device
*
* @map: Register map to
write to
* @map: Register map to
read from
* @reg: First register to be read from
* @val: Pointer to store read value
* @val_len: Size of data to read
...
...
@@ -1882,7 +1882,7 @@ EXPORT_SYMBOL_GPL(regmap_fields_read);
/**
* regmap_bulk_read(): Read multiple registers from the device
*
* @map: Register map to
write to
* @map: Register map to
read from
* @reg: First register to be read from
* @val: Pointer to store read value, in native register size for device
* @val_count: Number of registers to read
...
...
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