Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
24a19638
Commit
24a19638
authored
Feb 13, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Remove backlight level scaling from LPH8923 LCD driver
Signed-off-by:
Juha Yrjl
<
juha.yrjola@nokia.com
>
parent
55a6e025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
drivers/video/omap/lcd_lph8923.c
drivers/video/omap/lcd_lph8923.c
+3
-5
No files found.
drivers/video/omap/lcd_lph8923.c
View file @
24a19638
...
...
@@ -349,13 +349,12 @@ static void lph8923_panel_cleanup(void)
static
int
lph8923_panel_set_bklight_level
(
unsigned
int
level
)
{
if
(
level
>
0xf
)
if
(
level
>
tahvo_get_max_backlight_level
()
)
return
-
EINVAL
;
if
(
!
lph8923
.
enabled
)
{
lph8923
.
saved_bklight_level
=
level
;
return
0
;
}
level
=
level
*
tahvo_get_max_backlight_level
()
/
0x0f
;
tahvo_set_backlight_level
(
level
);
return
0
;
...
...
@@ -363,13 +362,12 @@ static int lph8923_panel_set_bklight_level(unsigned int level)
static
unsigned
int
lph8923_panel_get_bklight_level
(
void
)
{
return
tahvo_get_backlight_level
()
*
0x0f
/
tahvo_get_max_backlight_level
();
return
tahvo_get_backlight_level
();
}
static
unsigned
int
lph8923_panel_get_bklight_max
(
void
)
{
return
0x0f
;
return
tahvo_get_max_backlight_level
()
;
}
static
int
lph8923_panel_enable
(
void
)
...
...
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