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
bcd5d1d9
Commit
bcd5d1d9
authored
Apr 28, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/twl' into v3.9-rc8
parents
32e40be1
d1924519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
31 deletions
+3
-31
drivers/regulator/twl-regulator.c
drivers/regulator/twl-regulator.c
+3
-31
No files found.
drivers/regulator/twl-regulator.c
View file @
bcd5d1d9
...
...
@@ -441,12 +441,6 @@ static const u16 VSIM_VSEL_table[] = {
static
const
u16
VDAC_VSEL_table
[]
=
{
1200
,
1300
,
1800
,
1800
,
};
static
const
u16
VDD1_VSEL_table
[]
=
{
800
,
1450
,
};
static
const
u16
VDD2_VSEL_table
[]
=
{
800
,
1450
,
1500
,
};
static
const
u16
VIO_VSEL_table
[]
=
{
1800
,
1850
,
};
...
...
@@ -615,18 +609,8 @@ static struct regulator_ops twl6030ldo_ops = {
/*----------------------------------------------------------------------*/
/*
* Fixed voltage LDOs don't have a VSEL field to update.
*/
static
int
twlfixed_list_voltage
(
struct
regulator_dev
*
rdev
,
unsigned
index
)
{
struct
twlreg_info
*
info
=
rdev_get_drvdata
(
rdev
);
return
info
->
min_mV
*
1000
;
}
static
struct
regulator_ops
twl4030fixed_ops
=
{
.
list_voltage
=
twlfixed_list_voltage
,
.
list_voltage
=
regulator_list_voltage_linear
,
.
enable
=
twl4030reg_enable
,
.
disable
=
twl4030reg_disable
,
...
...
@@ -638,7 +622,7 @@ static struct regulator_ops twl4030fixed_ops = {
};
static
struct
regulator_ops
twl6030fixed_ops
=
{
.
list_voltage
=
twlfixed_list_voltage
,
.
list_voltage
=
regulator_list_voltage_linear
,
.
enable
=
twl6030reg_enable
,
.
disable
=
twl6030reg_disable
,
...
...
@@ -944,19 +928,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
.ops = &operations, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.enable_time = turnon_delay, \
}, \
}
#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \
static struct twlreg_info TWLRES_INFO_##label = { \
.base = offset, \
.desc = { \
.name = #label, \
.id = TWL6030_REG_##label, \
.ops = &twl6030_fixed_resource, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.min_uV = mVolts * 1000, \
.enable_time = turnon_delay, \
}, \
}
...
...
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