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
c642e870
Commit
c642e870
authored
Nov 22, 2019
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regulator-5.4' into regulator-linus
parents
af42d346
3f1a9e63
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
drivers/regulator/bd70528-regulator.c
drivers/regulator/bd70528-regulator.c
+1
-0
drivers/regulator/core.c
drivers/regulator/core.c
+7
-2
drivers/regulator/internal.h
drivers/regulator/internal.h
+1
-0
drivers/regulator/rn5t618-regulator.c
drivers/regulator/rn5t618-regulator.c
+1
-1
No files found.
drivers/regulator/bd70528-regulator.c
View file @
c642e870
...
@@ -286,3 +286,4 @@ module_platform_driver(bd70528_regulator);
...
@@ -286,3 +286,4 @@ module_platform_driver(bd70528_regulator);
MODULE_AUTHOR
(
"Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>"
);
MODULE_AUTHOR
(
"Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>"
);
MODULE_DESCRIPTION
(
"BD70528 voltage regulator driver"
);
MODULE_DESCRIPTION
(
"BD70528 voltage regulator driver"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"platform:bd70528-pmic"
);
drivers/regulator/core.c
View file @
c642e870
...
@@ -1844,6 +1844,7 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
...
@@ -1844,6 +1844,7 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
struct
regulator_dev
*
rdev
;
struct
regulator_dev
*
rdev
;
struct
regulator
*
regulator
;
struct
regulator
*
regulator
;
const
char
*
devname
=
dev
?
dev_name
(
dev
)
:
"deviceless"
;
const
char
*
devname
=
dev
?
dev_name
(
dev
)
:
"deviceless"
;
struct
device_link
*
link
;
int
ret
;
int
ret
;
if
(
get_type
>=
MAX_GET_TYPE
)
{
if
(
get_type
>=
MAX_GET_TYPE
)
{
...
@@ -1951,7 +1952,9 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
...
@@ -1951,7 +1952,9 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
rdev
->
use_count
=
0
;
rdev
->
use_count
=
0
;
}
}
device_link_add
(
dev
,
&
rdev
->
dev
,
DL_FLAG_STATELESS
);
link
=
device_link_add
(
dev
,
&
rdev
->
dev
,
DL_FLAG_STATELESS
);
if
(
!
IS_ERR_OR_NULL
(
link
))
regulator
->
device_link
=
true
;
return
regulator
;
return
regulator
;
}
}
...
@@ -2046,7 +2049,8 @@ static void _regulator_put(struct regulator *regulator)
...
@@ -2046,7 +2049,8 @@ static void _regulator_put(struct regulator *regulator)
debugfs_remove_recursive
(
regulator
->
debugfs
);
debugfs_remove_recursive
(
regulator
->
debugfs
);
if
(
regulator
->
dev
)
{
if
(
regulator
->
dev
)
{
device_link_remove
(
regulator
->
dev
,
&
rdev
->
dev
);
if
(
regulator
->
device_link
)
device_link_remove
(
regulator
->
dev
,
&
rdev
->
dev
);
/* remove any sysfs entries */
/* remove any sysfs entries */
sysfs_remove_link
(
&
rdev
->
dev
.
kobj
,
regulator
->
supply_name
);
sysfs_remove_link
(
&
rdev
->
dev
.
kobj
,
regulator
->
supply_name
);
...
@@ -5198,6 +5202,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
...
@@ -5198,6 +5202,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
regulator_remove_coupling
(
rdev
);
regulator_remove_coupling
(
rdev
);
mutex_unlock
(
&
regulator_list_mutex
);
mutex_unlock
(
&
regulator_list_mutex
);
wash:
wash:
kfree
(
rdev
->
coupling_desc
.
coupled_rdevs
);
kfree
(
rdev
->
constraints
);
kfree
(
rdev
->
constraints
);
mutex_lock
(
&
regulator_list_mutex
);
mutex_lock
(
&
regulator_list_mutex
);
regulator_ena_gpio_free
(
rdev
);
regulator_ena_gpio_free
(
rdev
);
...
...
drivers/regulator/internal.h
View file @
c642e870
...
@@ -36,6 +36,7 @@ struct regulator {
...
@@ -36,6 +36,7 @@ struct regulator {
struct
list_head
list
;
struct
list_head
list
;
unsigned
int
always_on
:
1
;
unsigned
int
always_on
:
1
;
unsigned
int
bypass
:
1
;
unsigned
int
bypass
:
1
;
unsigned
int
device_link
:
1
;
int
uA_load
;
int
uA_load
;
unsigned
int
enable_count
;
unsigned
int
enable_count
;
unsigned
int
deferred_disables
;
unsigned
int
deferred_disables
;
...
...
drivers/regulator/rn5t618-regulator.c
View file @
c642e870
...
@@ -90,7 +90,7 @@ static const struct regulator_desc rc5t619_regulators[] = {
...
@@ -90,7 +90,7 @@ static const struct regulator_desc rc5t619_regulators[] = {
REG
(
LDO7
,
LDOEN1
,
BIT
(
6
),
LDO7DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO7
,
LDOEN1
,
BIT
(
6
),
LDO7DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO8
,
LDOEN1
,
BIT
(
7
),
LDO8DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO8
,
LDOEN1
,
BIT
(
7
),
LDO8DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO9
,
LDOEN2
,
BIT
(
0
),
LDO9DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO9
,
LDOEN2
,
BIT
(
0
),
LDO9DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO10
,
LDOEN2
,
BIT
(
0
),
LDO10DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDO10
,
LDOEN2
,
BIT
(
1
),
LDO10DAC
,
0x7f
,
900000
,
3500000
,
25000
),
/* LDO RTC */
/* LDO RTC */
REG
(
LDORTC1
,
LDOEN2
,
BIT
(
4
),
LDORTCDAC
,
0x7f
,
1700000
,
3500000
,
25000
),
REG
(
LDORTC1
,
LDOEN2
,
BIT
(
4
),
LDORTCDAC
,
0x7f
,
1700000
,
3500000
,
25000
),
REG
(
LDORTC2
,
LDOEN2
,
BIT
(
5
),
LDORTC2DAC
,
0x7f
,
900000
,
3500000
,
25000
),
REG
(
LDORTC2
,
LDOEN2
,
BIT
(
5
),
LDORTC2DAC
,
0x7f
,
900000
,
3500000
,
25000
),
...
...
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