Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
42398dbd
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
You need to sign in or sign up before continuing.
提交
42398dbd
编写于
6月 02, 2014
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
上级
dc49f3d5
69c3f723
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
36 addition
and
30 deletion
+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
未找到文件。
drivers/regulator/core.c
浏览文件 @
42398dbd
...
@@ -1439,9 +1439,9 @@ EXPORT_SYMBOL_GPL(regulator_get);
...
@@ -1439,9 +1439,9 @@ EXPORT_SYMBOL_GPL(regulator_get);
*
*
* Returns a struct regulator corresponding to the regulator producer,
* Returns a struct regulator corresponding to the regulator producer,
* or IS_ERR() condition containing errno. Other consumers will be
* or IS_ERR() condition containing errno. Other consumers will be
* unable to obtain this re
ference is held and the use count for
the
* unable to obtain this re
gulator while this reference is held and
the
*
regulator will be initialised to reflect the current state of the
*
use count for the regulator will be initialised to reflect the current
* regulator.
*
state of the
regulator.
*
*
* This is intended for use by consumers which cannot tolerate shared
* This is intended for use by consumers which cannot tolerate shared
* use of the regulator such as those which need to force the
* use of the regulator such as those which need to force the
...
@@ -1465,10 +1465,7 @@ EXPORT_SYMBOL_GPL(regulator_get_exclusive);
...
@@ -1465,10 +1465,7 @@ EXPORT_SYMBOL_GPL(regulator_get_exclusive);
* @id: Supply name or regulator ID.
* @id: Supply name or regulator ID.
*
*
* Returns a struct regulator corresponding to the regulator producer,
* Returns a struct regulator corresponding to the regulator producer,
* or IS_ERR() condition containing errno. Other consumers will be
* or IS_ERR() condition containing errno.
* 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.
*
*
* This is intended for use by consumers for devices which can have
* This is intended for use by consumers for devices which can have
* some supplies unconnected in normal use, such as some MMC devices.
* some supplies unconnected in normal use, such as some MMC devices.
...
@@ -1606,9 +1603,10 @@ EXPORT_SYMBOL_GPL(regulator_unregister_supply_alias);
...
@@ -1606,9 +1603,10 @@ EXPORT_SYMBOL_GPL(regulator_unregister_supply_alias);
* registered any aliases that were registered will be removed
* registered any aliases that were registered will be removed
* before returning to the caller.
* 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
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
)
int
num_id
)
{
{
int
i
;
int
i
;
...
@@ -1646,7 +1644,7 @@ EXPORT_SYMBOL_GPL(regulator_bulk_register_supply_alias);
...
@@ -1646,7 +1644,7 @@ EXPORT_SYMBOL_GPL(regulator_bulk_register_supply_alias);
* aliases in one operation.
* aliases in one operation.
*/
*/
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
)
int
num_id
)
{
{
int
i
;
int
i
;
...
@@ -2330,6 +2328,10 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
...
@@ -2330,6 +2328,10 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
regulator_list_voltage_linear
)
regulator_list_voltage_linear
)
ret
=
regulator_map_voltage_linear
(
rdev
,
ret
=
regulator_map_voltage_linear
(
rdev
,
min_uV
,
max_uV
);
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
else
ret
=
regulator_map_voltage_iterate
(
rdev
,
ret
=
regulator_map_voltage_iterate
(
rdev
,
min_uV
,
max_uV
);
min_uV
,
max_uV
);
...
...
drivers/regulator/devres.c
浏览文件 @
42398dbd
...
@@ -360,9 +360,9 @@ EXPORT_SYMBOL_GPL(devm_regulator_unregister_supply_alias);
...
@@ -360,9 +360,9 @@ EXPORT_SYMBOL_GPL(devm_regulator_unregister_supply_alias);
* will be removed before returning to the caller.
* will be removed before returning to the caller.
*/
*/
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
)
int
num_id
)
{
{
int
i
;
int
i
;
...
@@ -404,7 +404,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_bulk_register_supply_alias);
...
@@ -404,7 +404,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_bulk_register_supply_alias);
* will ensure that the resource is freed.
* will ensure that the resource is freed.
*/
*/
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
)
int
num_id
)
{
{
int
i
;
int
i
;
...
...
include/linux/mfd/core.h
浏览文件 @
42398dbd
...
@@ -63,7 +63,7 @@ struct mfd_cell {
...
@@ -63,7 +63,7 @@ struct mfd_cell {
/* A list of regulator supplies that should be mapped to the MFD
/* A list of regulator supplies that should be mapped to the MFD
* device rather than the child device when requested
* device rather than the child device when requested
*/
*/
const
char
*
*
parent_supplies
;
const
char
*
const
*
parent_supplies
;
int
num_parent_supplies
;
int
num_parent_supplies
;
};
};
...
...
include/linux/regulator/consumer.h
浏览文件 @
42398dbd
...
@@ -151,11 +151,13 @@ int regulator_register_supply_alias(struct device *dev, const char *id,
...
@@ -151,11 +151,13 @@ int regulator_register_supply_alias(struct device *dev, const char *id,
const
char
*
alias_id
);
const
char
*
alias_id
);
void
regulator_unregister_supply_alias
(
struct
device
*
dev
,
const
char
*
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
,
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
,
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
,
int
devm_regulator_register_supply_alias
(
struct
device
*
dev
,
const
char
*
id
,
struct
device
*
alias_dev
,
struct
device
*
alias_dev
,
...
@@ -164,12 +166,12 @@ void devm_regulator_unregister_supply_alias(struct device *dev,
...
@@ -164,12 +166,12 @@ void devm_regulator_unregister_supply_alias(struct device *dev,
const
char
*
id
);
const
char
*
id
);
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
struct
device
*
alias_dev
,
const
char
**
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
);
int
num_id
);
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
void
devm_regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
**
id
,
const
char
*
const
*
id
,
int
num_id
);
int
num_id
);
/* regulator output control and status */
/* regulator output control and status */
...
@@ -290,16 +292,16 @@ static inline void regulator_unregister_supply_alias(struct device *dev,
...
@@ -290,16 +292,16 @@ static inline void regulator_unregister_supply_alias(struct device *dev,
}
}
static
inline
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
static
inline
int
regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
const
char
*
*
id
,
const
char
*
const
*
id
,
struct
device
*
alias_dev
,
struct
device
*
alias_dev
,
const
char
*
*
alias_id
,
const
char
*
const
*
alias_id
,
int
num_id
)
int
num_id
)
{
{
return
0
;
return
0
;
}
}
static
inline
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
static
inline
void
regulator_bulk_unregister_supply_alias
(
struct
device
*
dev
,
const
char
*
*
id
,
const
char
*
const
*
id
,
int
num_id
)
int
num_id
)
{
{
}
}
...
@@ -317,15 +319,17 @@ static inline void devm_regulator_unregister_supply_alias(struct device *dev,
...
@@ -317,15 +319,17 @@ static inline void devm_regulator_unregister_supply_alias(struct device *dev,
{
{
}
}
static
inline
int
devm_regulator_bulk_register_supply_alias
(
static
inline
int
devm_regulator_bulk_register_supply_alias
(
struct
device
*
dev
,
struct
device
*
dev
,
const
char
**
id
,
struct
device
*
alias_dev
,
const
char
*
const
*
id
,
const
char
**
alias_id
,
int
num_id
)
struct
device
*
alias_dev
,
const
char
*
const
*
alias_id
,
int
num_id
)
{
{
return
0
;
return
0
;
}
}
static
inline
void
devm_regulator_bulk_unregister_supply_alias
(
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
)
{
{
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录