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
3981560c
Commit
3981560c
authored
Nov 24, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/gpio' into regulator-linus
parents
7e9e801f
251b9c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/regulator/gpio-regulator.c
drivers/regulator/gpio-regulator.c
+6
-1
No files found.
drivers/regulator/gpio-regulator.c
View file @
3981560c
...
...
@@ -139,6 +139,7 @@ of_get_gpio_regulator_config(struct device *dev, struct device_node *np)
struct
property
*
prop
;
const
char
*
regtype
;
int
proplen
,
gpio
,
i
;
int
ret
;
config
=
devm_kzalloc
(
dev
,
sizeof
(
struct
gpio_regulator_config
),
...
...
@@ -202,7 +203,11 @@ of_get_gpio_regulator_config(struct device *dev, struct device_node *np)
}
config
->
nr_states
=
i
;
of_property_read_string
(
np
,
"regulator-type"
,
&
regtype
);
ret
=
of_property_read_string
(
np
,
"regulator-type"
,
&
regtype
);
if
(
ret
<
0
)
{
dev_err
(
dev
,
"Missing 'regulator-type' property
\n
"
);
return
ERR_PTR
(
-
EINVAL
);
}
if
(
!
strncmp
(
"voltage"
,
regtype
,
7
))
config
->
type
=
REGULATOR_VOLTAGE
;
...
...
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