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
c1ff8600
Commit
c1ff8600
authored
Aug 25, 2021
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/for-5.14' into regulator-linus
parents
e22ce8eb
ccb2a74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
drivers/regulator/hi6421v600-regulator.c
drivers/regulator/hi6421v600-regulator.c
+18
-18
No files found.
drivers/regulator/hi6421v600-regulator.c
View file @
c1ff8600
...
...
@@ -73,14 +73,14 @@ static const unsigned int ldo34_voltages[] = {
*/
#define HI6421V600_LDO(_id, vtable, ereg, emask, vreg, \
odelay, etime, ecomask, ecoamp) \
[
HI6421V
600_##_id] = { \
[
hi6421v
600_##_id] = { \
.desc = { \
.name = #_id, \
.of_match = of_match_ptr(#_id), \
.regulators_node = of_match_ptr("regulators"), \
.ops = &hi6421_spmi_ldo_rops, \
.type = REGULATOR_VOLTAGE, \
.id =
HI6421V
600_##_id, \
.id =
hi6421v
600_##_id, \
.owner = THIS_MODULE, \
.volt_table = vtable, \
.n_voltages = ARRAY_SIZE(vtable), \
...
...
@@ -185,46 +185,46 @@ static const struct regulator_ops hi6421_spmi_ldo_rops = {
/* HI6421v600 regulators with known registers */
enum
hi6421_spmi_regulator_id
{
HI6421V600_LDO
3
,
HI6421V600_LDO
4
,
HI6421V600_LDO
9
,
HI6421V600_LDO
15
,
HI6421V600_LDO
16
,
HI6421V600_LDO
17
,
HI6421V600_LDO
33
,
HI6421V600_LDO
34
,
hi6421v600_ldo
3
,
hi6421v600_ldo
4
,
hi6421v600_ldo
9
,
hi6421v600_ldo
15
,
hi6421v600_ldo
16
,
hi6421v600_ldo
17
,
hi6421v600_ldo
33
,
hi6421v600_ldo
34
,
};
static
struct
hi6421_spmi_reg_info
regulator_info
[]
=
{
HI6421V600_LDO
(
LDO
3
,
ldo3_voltages
,
HI6421V600_LDO
(
ldo
3
,
ldo3_voltages
,
0x16
,
0x01
,
0x51
,
20000
,
120
,
0
,
0
),
HI6421V600_LDO
(
LDO
4
,
ldo4_voltages
,
HI6421V600_LDO
(
ldo
4
,
ldo4_voltages
,
0x17
,
0x01
,
0x52
,
20000
,
120
,
0x10
,
10000
),
HI6421V600_LDO
(
LDO
9
,
ldo9_voltages
,
HI6421V600_LDO
(
ldo
9
,
ldo9_voltages
,
0x1c
,
0x01
,
0x57
,
20000
,
360
,
0x10
,
10000
),
HI6421V600_LDO
(
LDO
15
,
ldo15_voltages
,
HI6421V600_LDO
(
ldo
15
,
ldo15_voltages
,
0x21
,
0x01
,
0x5c
,
20000
,
360
,
0x10
,
10000
),
HI6421V600_LDO
(
LDO
16
,
ldo15_voltages
,
HI6421V600_LDO
(
ldo
16
,
ldo15_voltages
,
0x22
,
0x01
,
0x5d
,
20000
,
360
,
0x10
,
10000
),
HI6421V600_LDO
(
LDO
17
,
ldo17_voltages
,
HI6421V600_LDO
(
ldo
17
,
ldo17_voltages
,
0x23
,
0x01
,
0x5e
,
20000
,
120
,
0x10
,
10000
),
HI6421V600_LDO
(
LDO
33
,
ldo17_voltages
,
HI6421V600_LDO
(
ldo
33
,
ldo17_voltages
,
0x32
,
0x01
,
0x6d
,
20000
,
120
,
0
,
0
),
HI6421V600_LDO
(
LDO
34
,
ldo34_voltages
,
HI6421V600_LDO
(
ldo
34
,
ldo34_voltages
,
0x33
,
0x01
,
0x6e
,
20000
,
120
,
0
,
0
),
...
...
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