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
cc6962db
Commit
cc6962db
authored
Jul 15, 2011
by
Kevin Hilman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OMAP3+: VP: remove unused omap_vp_get_curr_volt()
Signed-off-by:
Kevin Hilman
<
khilman@ti.com
>
parent
8798c4ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
arch/arm/mach-omap2/vp.c
arch/arm/mach-omap2/vp.c
+0
-34
arch/arm/mach-omap2/vp.h
arch/arm/mach-omap2/vp.h
+0
-1
No files found.
arch/arm/mach-omap2/vp.c
View file @
cc6962db
...
...
@@ -208,40 +208,6 @@ int omap_vp_forceupdate_scale(struct voltagedomain *voltdm,
return
0
;
}
/**
* omap_vp_get_curr_volt() - API to get the current vp voltage.
* @voltdm: pointer to the VDD.
*
* This API returns the current voltage for the specified voltage processor
*/
unsigned
long
omap_vp_get_curr_volt
(
struct
voltagedomain
*
voltdm
)
{
struct
omap_vp_instance
*
vp
=
voltdm
->
vp
;
u8
curr_vsel
;
if
(
!
voltdm
||
IS_ERR
(
voltdm
))
{
pr_warning
(
"%s: VDD specified does not exist!
\n
"
,
__func__
);
return
0
;
}
if
(
!
voltdm
->
read
)
{
pr_err
(
"%s: No read API for reading vdd_%s regs
\n
"
,
__func__
,
voltdm
->
name
);
return
0
;
}
curr_vsel
=
(
voltdm
->
read
(
vp
->
voltage
)
&
vp
->
common
->
vpvoltage_mask
)
>>
__ffs
(
vp
->
common
->
vpvoltage_mask
);
if
(
!
voltdm
->
pmic
||
!
voltdm
->
pmic
->
vsel_to_uv
)
{
pr_warning
(
"%s: PMIC function to convert vsel to voltage"
"in uV not registerd
\n
"
,
__func__
);
return
0
;
}
return
voltdm
->
pmic
->
vsel_to_uv
(
curr_vsel
);
}
/**
* omap_vp_enable() - API to enable a particular VP
* @voltdm: pointer to the VDD whose VP is to be enabled.
...
...
arch/arm/mach-omap2/vp.h
View file @
cc6962db
...
...
@@ -120,7 +120,6 @@ extern struct omap_vp_instance omap4_vp_core;
void
omap_vp_init
(
struct
voltagedomain
*
voltdm
);
void
omap_vp_enable
(
struct
voltagedomain
*
voltdm
);
void
omap_vp_disable
(
struct
voltagedomain
*
voltdm
);
unsigned
long
omap_vp_get_curr_volt
(
struct
voltagedomain
*
voltdm
);
int
omap_vp_forceupdate_scale
(
struct
voltagedomain
*
voltdm
,
unsigned
long
target_volt
);
int
omap_vp_update_errorgain
(
struct
voltagedomain
*
voltdm
,
...
...
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