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
1474e4db
Commit
1474e4db
authored
Apr 09, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regulator-register' into regulator-drivers
parents
f604c10c
09de3473
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
19 additions
and
17 deletions
+19
-17
drivers/regulator/ad5398.c
drivers/regulator/ad5398.c
+1
-1
drivers/regulator/core.c
drivers/regulator/core.c
+2
-1
drivers/regulator/isl6271a-regulator.c
drivers/regulator/isl6271a-regulator.c
+1
-1
drivers/regulator/lp3971.c
drivers/regulator/lp3971.c
+1
-1
drivers/regulator/lp3972.c
drivers/regulator/lp3972.c
+1
-1
drivers/regulator/max1586.c
drivers/regulator/max1586.c
+1
-1
drivers/regulator/max8649.c
drivers/regulator/max8649.c
+1
-1
drivers/regulator/max8660.c
drivers/regulator/max8660.c
+1
-1
drivers/regulator/max8952.c
drivers/regulator/max8952.c
+1
-1
drivers/regulator/pcap-regulator.c
drivers/regulator/pcap-regulator.c
+1
-1
drivers/regulator/pcf50633-regulator.c
drivers/regulator/pcf50633-regulator.c
+1
-1
drivers/regulator/tps6105x-regulator.c
drivers/regulator/tps6105x-regulator.c
+1
-1
drivers/regulator/tps65217-regulator.c
drivers/regulator/tps65217-regulator.c
+1
-1
drivers/regulator/wm8350-regulator.c
drivers/regulator/wm8350-regulator.c
+1
-1
drivers/regulator/wm8994-regulator.c
drivers/regulator/wm8994-regulator.c
+1
-1
include/linux/regulator/driver.h
include/linux/regulator/driver.h
+3
-2
No files found.
drivers/regulator/ad5398.c
View file @
1474e4db
...
...
@@ -184,7 +184,7 @@ static struct regulator_ops ad5398_ops = {
.
is_enabled
=
ad5398_is_enabled
,
};
static
struct
regulator_desc
ad5398_reg
=
{
static
const
struct
regulator_desc
ad5398_reg
=
{
.
name
=
"isink"
,
.
id
=
0
,
.
ops
=
&
ad5398_ops
,
...
...
drivers/regulator/core.c
View file @
1474e4db
...
...
@@ -2829,7 +2829,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
* Called by regulator drivers to register a regulator.
* Returns 0 on success.
*/
struct
regulator_dev
*
regulator_register
(
struct
regulator_desc
*
regulator_desc
,
struct
regulator_dev
*
regulator_register
(
const
struct
regulator_desc
*
regulator_desc
,
struct
device
*
dev
,
const
struct
regulator_init_data
*
init_data
,
void
*
driver_data
,
struct
device_node
*
of_node
)
{
...
...
drivers/regulator/isl6271a-regulator.c
View file @
1474e4db
...
...
@@ -112,7 +112,7 @@ static struct regulator_ops isl_fixed_ops = {
.
list_voltage
=
isl6271a_list_fixed_voltage
,
};
static
struct
regulator_desc
isl_rd
[]
=
{
static
const
struct
regulator_desc
isl_rd
[]
=
{
{
.
name
=
"Core Buck"
,
.
id
=
0
,
...
...
drivers/regulator/lp3971.c
View file @
1474e4db
...
...
@@ -281,7 +281,7 @@ static struct regulator_ops lp3971_dcdc_ops = {
.
set_voltage_sel
=
lp3971_dcdc_set_voltage_sel
,
};
static
struct
regulator_desc
regulators
[]
=
{
static
const
struct
regulator_desc
regulators
[]
=
{
{
.
name
=
"LDO1"
,
.
id
=
LP3971_LDO1
,
...
...
drivers/regulator/lp3972.c
View file @
1474e4db
...
...
@@ -444,7 +444,7 @@ static struct regulator_ops lp3972_dcdc_ops = {
.
set_voltage_sel
=
lp3972_dcdc_set_voltage_sel
,
};
static
struct
regulator_desc
regulators
[]
=
{
static
const
struct
regulator_desc
regulators
[]
=
{
{
.
name
=
"LDO1"
,
.
id
=
LP3972_LDO1
,
...
...
drivers/regulator/max1586.c
View file @
1474e4db
...
...
@@ -161,7 +161,7 @@ static struct regulator_ops max1586_v6_ops = {
.
list_voltage
=
max1586_v6_list
,
};
static
struct
regulator_desc
max1586_reg
[]
=
{
static
const
struct
regulator_desc
max1586_reg
[]
=
{
{
.
name
=
"Output_V3"
,
.
id
=
MAX1586_V3
,
...
...
drivers/regulator/max8649.c
View file @
1474e4db
...
...
@@ -207,7 +207,7 @@ static struct regulator_ops max8649_dcdc_ops = {
};
static
struct
regulator_desc
dcdc_desc
=
{
static
const
struct
regulator_desc
dcdc_desc
=
{
.
name
=
"max8649"
,
.
ops
=
&
max8649_dcdc_ops
,
.
type
=
REGULATOR_VOLTAGE
,
...
...
drivers/regulator/max8660.c
View file @
1474e4db
...
...
@@ -313,7 +313,7 @@ static struct regulator_ops max8660_ldo67_ops = {
.
set_voltage
=
max8660_ldo67_set
,
};
static
struct
regulator_desc
max8660_reg
[]
=
{
static
const
struct
regulator_desc
max8660_reg
[]
=
{
{
.
name
=
"V3(DCDC)"
,
.
id
=
MAX8660_V3
,
...
...
drivers/regulator/max8952.c
View file @
1474e4db
...
...
@@ -159,7 +159,7 @@ static struct regulator_ops max8952_ops = {
.
set_suspend_disable
=
max8952_disable
,
};
static
struct
regulator_desc
regulator
=
{
static
const
struct
regulator_desc
regulator
=
{
.
name
=
"MAX8952_VOUT"
,
.
id
=
0
,
.
n_voltages
=
MAX8952_NUM_DVS_MODE
,
...
...
drivers/regulator/pcap-regulator.c
View file @
1474e4db
...
...
@@ -241,7 +241,7 @@ static struct regulator_ops pcap_regulator_ops = {
.owner = THIS_MODULE, \
}
static
struct
regulator_desc
pcap_regulators
[]
=
{
static
const
struct
regulator_desc
pcap_regulators
[]
=
{
VREG
(
V1
),
VREG
(
V2
),
VREG
(
V3
),
VREG
(
V4
),
VREG
(
V5
),
VREG
(
V6
),
VREG
(
V7
),
VREG
(
V8
),
VREG
(
V9
),
VREG
(
V10
),
VREG
(
VAUX1
),
VREG
(
VAUX2
),
VREG
(
VAUX3
),
VREG
(
VAUX4
),
VREG
(
VSIM
),
VREG
(
VSIM2
),
VREG
(
VVIB
),
VREG
(
SW1
),
VREG
(
SW2
),
...
...
drivers/regulator/pcf50633-regulator.c
View file @
1474e4db
...
...
@@ -267,7 +267,7 @@ static struct regulator_ops pcf50633_regulator_ops = {
.
is_enabled
=
pcf50633_regulator_is_enabled
,
};
static
struct
regulator_desc
regulators
[]
=
{
static
const
struct
regulator_desc
regulators
[]
=
{
[
PCF50633_REGULATOR_AUTO
]
=
PCF50633_REGULATOR
(
"auto"
,
PCF50633_REGULATOR_AUTO
,
128
),
[
PCF50633_REGULATOR_DOWN1
]
=
...
...
drivers/regulator/tps6105x-regulator.c
View file @
1474e4db
...
...
@@ -123,7 +123,7 @@ static struct regulator_ops tps6105x_regulator_ops = {
.
list_voltage
=
tps6105x_regulator_list_voltage
,
};
static
struct
regulator_desc
tps6105x_regulator_desc
=
{
static
const
struct
regulator_desc
tps6105x_regulator_desc
=
{
.
name
=
"tps6105x-boost"
,
.
ops
=
&
tps6105x_regulator_ops
,
.
type
=
REGULATOR_VOLTAGE
,
...
...
drivers/regulator/tps65217-regulator.c
View file @
1474e4db
...
...
@@ -312,7 +312,7 @@ static struct regulator_ops tps65217_pmic_ldo1_ops = {
.
list_voltage
=
tps65217_pmic_list_voltage
,
};
static
struct
regulator_desc
regulators
[]
=
{
static
const
struct
regulator_desc
regulators
[]
=
{
TPS65217_REGULATOR
(
"DCDC1"
,
TPS65217_DCDC_1
,
tps65217_pmic_ops
,
64
),
TPS65217_REGULATOR
(
"DCDC2"
,
TPS65217_DCDC_2
,
tps65217_pmic_ops
,
64
),
TPS65217_REGULATOR
(
"DCDC3"
,
TPS65217_DCDC_3
,
tps65217_pmic_ops
,
64
),
...
...
drivers/regulator/wm8350-regulator.c
View file @
1474e4db
...
...
@@ -1269,7 +1269,7 @@ static struct regulator_ops wm8350_isink_ops = {
.
enable_time
=
wm8350_isink_enable_time
,
};
static
struct
regulator_desc
wm8350_reg
[
NUM_WM8350_REGULATORS
]
=
{
static
const
struct
regulator_desc
wm8350_reg
[
NUM_WM8350_REGULATORS
]
=
{
{
.
name
=
"DCDC1"
,
.
id
=
WM8350_DCDC_1
,
...
...
drivers/regulator/wm8994-regulator.c
View file @
1474e4db
...
...
@@ -209,7 +209,7 @@ static struct regulator_ops wm8994_ldo2_ops = {
.
set_voltage
=
wm8994_ldo2_set_voltage
,
};
static
struct
regulator_desc
wm8994_ldo_desc
[]
=
{
static
const
struct
regulator_desc
wm8994_ldo_desc
[]
=
{
{
.
name
=
"LDO1"
,
.
id
=
1
,
...
...
include/linux/regulator/driver.h
View file @
1474e4db
...
...
@@ -184,7 +184,7 @@ struct regulator_desc {
* no other direct access).
*/
struct
regulator_dev
{
struct
regulator_desc
*
desc
;
const
struct
regulator_desc
*
desc
;
int
exclusive
;
u32
use_count
;
u32
open_count
;
...
...
@@ -210,7 +210,8 @@ struct regulator_dev {
struct
dentry
*
debugfs
;
};
struct
regulator_dev
*
regulator_register
(
struct
regulator_desc
*
regulator_desc
,
struct
regulator_dev
*
regulator_register
(
const
struct
regulator_desc
*
regulator_desc
,
struct
device
*
dev
,
const
struct
regulator_init_data
*
init_data
,
void
*
driver_data
,
struct
device_node
*
of_node
);
void
regulator_unregister
(
struct
regulator_dev
*
rdev
);
...
...
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