Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
115e4bfd
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
115e4bfd
编写于
3月 18, 2012
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'regulator/topic/supply' into regulator-next
上级
c02f935f
5bc78015
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
25 deletion
+12
-25
arch/arm/mach-u300/i2c.c
arch/arm/mach-u300/i2c.c
+0
-2
drivers/mfd/twl-core.c
drivers/mfd/twl-core.c
+4
-4
drivers/regulator/core.c
drivers/regulator/core.c
+8
-17
include/linux/regulator/machine.h
include/linux/regulator/machine.h
+0
-2
未找到文件。
arch/arm/mach-u300/i2c.c
浏览文件 @
115e4bfd
...
...
@@ -60,7 +60,6 @@ static struct regulator_consumer_supply supply_ldo_c[] = {
*/
static
struct
regulator_consumer_supply
supply_ldo_d
[]
=
{
{
.
dev
=
NULL
,
.
supply
=
"vana15"
,
/* Powers the SoC (CPU etc) */
},
};
...
...
@@ -92,7 +91,6 @@ static struct regulator_consumer_supply supply_ldo_k[] = {
*/
static
struct
regulator_consumer_supply
supply_ldo_ext
[]
=
{
{
.
dev
=
NULL
,
.
supply
=
"vext"
,
/* External power */
},
};
...
...
drivers/mfd/twl-core.c
浏览文件 @
115e4bfd
...
...
@@ -753,9 +753,9 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
/* we need to connect regulators to this transceiver */
if
(
twl_has_regulator
()
&&
child
)
{
usb1v5
.
dev
=
child
;
usb1v8
.
dev
=
child
;
usb3v1
.
dev
=
child
;
usb1v5
.
dev
_name
=
dev_name
(
child
)
;
usb1v8
.
dev
_name
=
dev_name
(
child
)
;
usb3v1
.
dev
_name
=
dev_name
(
child
)
;
}
}
if
(
twl_has_usb
()
&&
pdata
->
usb
&&
twl_class_is_6030
())
{
...
...
@@ -801,7 +801,7 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
return
PTR_ERR
(
child
);
/* we need to connect regulators to this transceiver */
if
(
twl_has_regulator
()
&&
child
)
usb3v3
.
dev
=
child
;
usb3v3
.
dev
_name
=
dev_name
(
child
)
;
}
else
if
(
twl_has_regulator
()
&&
twl_class_is_6030
())
{
if
(
features
&
TWL6025_SUBCLASS
)
child
=
add_regulator
(
TWL6025_REG_LDOUSB
,
...
...
drivers/regulator/core.c
浏览文件 @
115e4bfd
...
...
@@ -995,7 +995,6 @@ static int set_supply(struct regulator_dev *rdev,
/**
* set_consumer_device_supply - Bind a regulator to a symbolic supply
* @rdev: regulator source
* @consumer_dev: device the supply applies to
* @consumer_dev_name: dev_name() string for device supply applies to
* @supply: symbolic name for supply
*
...
...
@@ -1003,22 +1002,14 @@ static int set_supply(struct regulator_dev *rdev,
* sources to symbolic names for supplies for use by devices. Devices
* should use these symbolic names to request regulators, avoiding the
* need to provide board-specific regulator names as platform data.
*
* Only one of consumer_dev and consumer_dev_name may be specified.
*/
static
int
set_consumer_device_supply
(
struct
regulator_dev
*
rdev
,
struct
device
*
consumer_dev
,
const
char
*
consumer_dev_name
,
const
char
*
supply
)
const
char
*
consumer_dev_name
,
const
char
*
supply
)
{
struct
regulator_map
*
node
;
int
has_dev
;
if
(
consumer_dev
&&
consumer_dev_name
)
return
-
EINVAL
;
if
(
!
consumer_dev_name
&&
consumer_dev
)
consumer_dev_name
=
dev_name
(
consumer_dev
);
if
(
supply
==
NULL
)
return
-
EINVAL
;
...
...
@@ -1038,11 +1029,12 @@ static int set_consumer_device_supply(struct regulator_dev *rdev,
if
(
strcmp
(
node
->
supply
,
supply
)
!=
0
)
continue
;
dev_dbg
(
consumer_dev
,
"%s/%s is '%s' supply; fail %s/%s
\n
"
,
dev_name
(
&
node
->
regulator
->
dev
),
node
->
regulator
->
desc
->
name
,
supply
,
dev_name
(
&
rdev
->
dev
),
rdev_get_name
(
rdev
));
pr_debug
(
"%s: %s/%s is '%s' supply; fail %s/%s
\n
"
,
consumer_dev_name
,
dev_name
(
&
node
->
regulator
->
dev
),
node
->
regulator
->
desc
->
name
,
supply
,
dev_name
(
&
rdev
->
dev
),
rdev_get_name
(
rdev
));
return
-
EBUSY
;
}
...
...
@@ -2955,7 +2947,6 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
if
(
init_data
)
{
for
(
i
=
0
;
i
<
init_data
->
num_consumer_supplies
;
i
++
)
{
ret
=
set_consumer_device_supply
(
rdev
,
init_data
->
consumer_supplies
[
i
].
dev
,
init_data
->
consumer_supplies
[
i
].
dev_name
,
init_data
->
consumer_supplies
[
i
].
supply
);
if
(
ret
<
0
)
{
...
...
include/linux/regulator/machine.h
浏览文件 @
115e4bfd
...
...
@@ -139,12 +139,10 @@ struct regulation_constraints {
* make struct device available late such as I2C and is the preferred
* form.
*
* @dev: Device structure for the consumer.
* @dev_name: Result of dev_name() for the consumer.
* @supply: Name for the supply.
*/
struct
regulator_consumer_supply
{
struct
device
*
dev
;
/* consumer */
const
char
*
dev_name
;
/* dev_name() for consumer */
const
char
*
supply
;
/* consumer supply - e.g. "vcc" */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录