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
Kirill Smelkov
linux
Commits
c7b5128f
Commit
c7b5128f
authored
May 06, 2019
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regulator-5.1' into regulator-linus
parents
e93c9c99
734008e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
drivers/regulator/core.c
drivers/regulator/core.c
+7
-8
drivers/regulator/max77620-regulator.c
drivers/regulator/max77620-regulator.c
+1
-1
drivers/regulator/tps65217-regulator.c
drivers/regulator/tps65217-regulator.c
+1
-1
No files found.
drivers/regulator/core.c
View file @
c7b5128f
...
@@ -2256,6 +2256,7 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev)
...
@@ -2256,6 +2256,7 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev)
if
(
pin
->
gpiod
==
rdev
->
ena_pin
->
gpiod
)
{
if
(
pin
->
gpiod
==
rdev
->
ena_pin
->
gpiod
)
{
if
(
pin
->
request_count
<=
1
)
{
if
(
pin
->
request_count
<=
1
)
{
pin
->
request_count
=
0
;
pin
->
request_count
=
0
;
gpiod_put
(
pin
->
gpiod
);
list_del
(
&
pin
->
list
);
list_del
(
&
pin
->
list
);
kfree
(
pin
);
kfree
(
pin
);
rdev
->
ena_pin
=
NULL
;
rdev
->
ena_pin
=
NULL
;
...
@@ -3322,15 +3323,12 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,
...
@@ -3322,15 +3323,12 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,
/* for not coupled regulators this will just set the voltage */
/* for not coupled regulators this will just set the voltage */
ret
=
regulator_balance_voltage
(
rdev
,
state
);
ret
=
regulator_balance_voltage
(
rdev
,
state
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
goto
out2
;
voltage
->
min_uV
=
old_min_uV
;
voltage
->
max_uV
=
old_max_uV
;
}
out:
out:
return
0
;
out2:
voltage
->
min_uV
=
old_min_uV
;
voltage
->
max_uV
=
old_max_uV
;
return
ret
;
return
ret
;
}
}
...
@@ -5064,10 +5062,11 @@ void regulator_unregister(struct regulator_dev *rdev)
...
@@ -5064,10 +5062,11 @@ void regulator_unregister(struct regulator_dev *rdev)
regulator_put
(
rdev
->
supply
);
regulator_put
(
rdev
->
supply
);
}
}
flush_work
(
&
rdev
->
disable_work
.
work
);
mutex_lock
(
&
regulator_list_mutex
);
mutex_lock
(
&
regulator_list_mutex
);
debugfs_remove_recursive
(
rdev
->
debugfs
);
debugfs_remove_recursive
(
rdev
->
debugfs
);
flush_work
(
&
rdev
->
disable_work
.
work
);
WARN_ON
(
rdev
->
open_count
);
WARN_ON
(
rdev
->
open_count
);
regulator_remove_coupling
(
rdev
);
regulator_remove_coupling
(
rdev
);
unset_regulator_supplies
(
rdev
);
unset_regulator_supplies
(
rdev
);
...
...
drivers/regulator/max77620-regulator.c
View file @
c7b5128f
...
@@ -803,7 +803,7 @@ static int max77620_regulator_probe(struct platform_device *pdev)
...
@@ -803,7 +803,7 @@ static int max77620_regulator_probe(struct platform_device *pdev)
continue
;
continue
;
rdesc
=
&
rinfo
[
id
].
desc
;
rdesc
=
&
rinfo
[
id
].
desc
;
pmic
->
rinfo
[
id
]
=
&
max77620_regs_
info
[
id
];
pmic
->
rinfo
[
id
]
=
&
r
info
[
id
];
pmic
->
enable_power_mode
[
id
]
=
MAX77620_POWER_MODE_NORMAL
;
pmic
->
enable_power_mode
[
id
]
=
MAX77620_POWER_MODE_NORMAL
;
pmic
->
reg_pdata
[
id
].
active_fps_src
=
-
1
;
pmic
->
reg_pdata
[
id
].
active_fps_src
=
-
1
;
pmic
->
reg_pdata
[
id
].
active_fps_pd_slot
=
-
1
;
pmic
->
reg_pdata
[
id
].
active_fps_pd_slot
=
-
1
;
...
...
drivers/regulator/tps65217-regulator.c
View file @
c7b5128f
...
@@ -61,7 +61,7 @@ static const struct regulator_linear_range tps65217_uv1_ranges[] = {
...
@@ -61,7 +61,7 @@ static const struct regulator_linear_range tps65217_uv1_ranges[] = {
REGULATOR_LINEAR_RANGE
(
1550000
,
25
,
30
,
50000
),
REGULATOR_LINEAR_RANGE
(
1550000
,
25
,
30
,
50000
),
REGULATOR_LINEAR_RANGE
(
1850000
,
31
,
52
,
50000
),
REGULATOR_LINEAR_RANGE
(
1850000
,
31
,
52
,
50000
),
REGULATOR_LINEAR_RANGE
(
3000000
,
53
,
55
,
100000
),
REGULATOR_LINEAR_RANGE
(
3000000
,
53
,
55
,
100000
),
REGULATOR_LINEAR_RANGE
(
3300000
,
56
,
6
2
,
0
),
REGULATOR_LINEAR_RANGE
(
3300000
,
56
,
6
3
,
0
),
};
};
static
const
struct
regulator_linear_range
tps65217_uv2_ranges
[]
=
{
static
const
struct
regulator_linear_range
tps65217_uv2_ranges
[]
=
{
...
...
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