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
42398dbd
Commit
42398dbd
authored
Jun 02, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
parents
dc49f3d5
69c3f723
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
30 deletions
+36
-30
drivers/regulator/core.c
drivers/regulator/core.c
+12
-10
drivers/regulator/devres.c
drivers/regulator/devres.c
+3
-3
include/linux/mfd/core.h
include/linux/mfd/core.h
+1
-1
include/linux/regulator/consumer.h
include/linux/regulator/consumer.h
+20
-16
No files found.
drivers/regulator/core.c
View file @
42398dbd
...
...
@@ -1439,9 +1439,9 @@ EXPORT_SYMBOL_GPL(regulator_get);
*
* Returns a struct regulator corresponding to the regulator producer,
* or IS_ERR() condition containing errno. Other consumers will be
* unable to obtain this re
ference is held and the use count for
the
*
regulator will be initialised to reflect the current state of the
* regulator.
* unable to obtain this re
gulator while this reference is held and
the
*
use count for the regulator will be initialised to reflect the current
*
state of the
regulator.
*
* This is intended for use by consumers which cannot tolerate shared
* use of the regulator such as those which need to force the
...
...
@@ -1465,10 +1465,7 @@ EXPORT_SYMBOL_GPL(regulator_get_exclusive);
* @id: Supply name or regulator ID.
*
* Returns a struct regulator corresponding to the regulator producer,
* or IS_ERR() condition containing errno. Other consumers will be
* unable to obtain this reference is held and the use count for the
* regulator will be initialised to reflect the current state of the
* regulator.
* or IS_ERR() condition containing errno.
*
* This is intended for use by consumers for devices which can have
* some supplies unconnected in normal use, such as some MMC devices.
...
...
@@ -1606,9 +1603,10 @@ EXPORT_SYMBOL_GPL(regulator_unregister_supply_alias);
* registered any aliases that were registered will be removed
* before returning to the caller.
*/
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
)
{
int
i
;
...
...
@@ -1646,7 +1644,7 @@ EXPORT_SYMBOL_GPL(regulator_bulk_register_supply_alias);
* aliases in one operation.
*/
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
)
{
int
i
;
...
...
@@ -2330,6 +2328,10 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
regulator_list_voltage_linear
)
ret
=
regulator_map_voltage_linear
(
rdev
,
min_uV
,
max_uV
);
else
if
(
rdev
->
desc
->
ops
->
list_voltage
==
regulator_list_voltage_linear_range
)
ret
=
regulator_map_voltage_linear_range
(
rdev
,
min_uV
,
max_uV
);
else
ret
=
regulator_map_voltage_iterate
(
rdev
,
min_uV
,
max_uV
);
...
...
drivers/regulator/devres.c
View file @
42398dbd
...
...
@@ -360,9 +360,9 @@ EXPORT_SYMBOL_GPL(devm_regulator_unregister_supply_alias);
* will be removed before returning to the caller.
*/
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
)
{
int
i
;
...
...
@@ -404,7 +404,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_bulk_register_supply_alias);
* will ensure that the resource is freed.
*/
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
)
{
int
i
;
...
...
include/linux/mfd/core.h
View file @
42398dbd
...
...
@@ -63,7 +63,7 @@ struct mfd_cell {
/* A list of regulator supplies that should be mapped to the MFD
* device rather than the child device when requested
*/
const
char
*
*
parent_supplies
;
const
char
*
const
*
parent_supplies
;
int
num_parent_supplies
;
};
...
...
include/linux/regulator/consumer.h
View file @
42398dbd
...
...
@@ -151,11 +151,13 @@ int regulator_register_supply_alias(struct device *dev, const char *id,
const
char
*
alias_id
);
void
regulator_unregister_supply_alias
(
struct
device
*
dev
,
const
char
*
id
);
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
int
num_id
);
const
char
*
const
*
alias_id
,
int
num_id
);
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
int
num_id
);
const
char
*
const
*
id
,
int
num_id
);
int
devm_regulator_register_supply_alias
(
struct
device
*
dev
,
const
char
*
id
,
struct
device
*
alias_dev
,
...
...
@@ -164,12 +166,12 @@ void devm_regulator_unregister_supply_alias(struct device *dev,
const
char
*
id
);
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
);
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
);
/* regulator output control and status */
...
...
@@ -290,17 +292,17 @@ static inline void regulator_unregister_supply_alias(struct device *dev,
}
static
inline
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
*
*
id
,
struct
device
*
alias_dev
,
const
char
*
*
alias_id
,
int
num_id
)
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
*
const
*
alias_id
,
int
num_id
)
{
return
0
;
}
static
inline
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
*
*
id
,
int
num_id
)
const
char
*
const
*
id
,
int
num_id
)
{
}
...
...
@@ -317,15 +319,17 @@ static inline void devm_regulator_unregister_supply_alias(struct device *dev,
{
}
static
inline
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
int
num_id
)
static
inline
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
const
char
*
const
*
alias_id
,
int
num_id
)
{
return
0
;
}
static
inline
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
*
*
id
,
int
num_id
)
struct
device
*
dev
,
const
char
*
const
*
id
,
int
num_id
)
{
}
...
...
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