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
6806a663
Commit
6806a663
authored
Nov 27, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/dt' into regulator-next
parents
02fcc84a
bc91396b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
drivers/regulator/fixed.c
drivers/regulator/fixed.c
+5
-1
drivers/regulator/of_regulator.c
drivers/regulator/of_regulator.c
+2
-0
No files found.
drivers/regulator/fixed.c
View file @
6806a663
...
...
@@ -51,7 +51,8 @@ struct fixed_voltage_data {
* tree node, returns a pointer to the populated structure of NULL if memory
* alloc fails.
*/
struct
fixed_voltage_config
*
of_get_fixed_voltage_config
(
struct
device
*
dev
)
static
struct
fixed_voltage_config
*
of_get_fixed_voltage_config
(
struct
device
*
dev
)
{
struct
fixed_voltage_config
*
config
;
struct
device_node
*
np
=
dev
->
of_node
;
...
...
@@ -64,6 +65,9 @@ struct fixed_voltage_config *of_get_fixed_voltage_config(struct device *dev)
return
NULL
;
config
->
init_data
=
of_get_regulator_init_data
(
dev
);
if
(
!
config
->
init_data
)
return
NULL
;
init_data
=
config
->
init_data
;
config
->
supply_name
=
init_data
->
constraints
.
name
;
...
...
drivers/regulator/of_regulator.c
View file @
6806a663
...
...
@@ -10,6 +10,7 @@
* (at your option) any later version.
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/regulator/machine.h>
...
...
@@ -79,3 +80,4 @@ struct regulator_init_data *of_get_regulator_init_data(struct device *dev)
of_get_regulation_constraints
(
dev
->
of_node
,
&
init_data
);
return
init_data
;
}
EXPORT_SYMBOL_GPL
(
of_get_regulator_init_data
);
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