From 24a196385508226dfce7d9b76cadec964a33fad2 Mon Sep 17 00:00:00 2001
From: Juha Yrjola <juha.yrjola@nokia.com>
Date: Mon, 13 Feb 2006 20:06:54 +0200
Subject: [PATCH] ARM: OMAP: Remove backlight level scaling from LPH8923 LCD
 driver
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Juha Yrj�l� <juha.yrjola@nokia.com>
---
 drivers/video/omap/lcd_lph8923.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/video/omap/lcd_lph8923.c b/drivers/video/omap/lcd_lph8923.c
index ff331160d9b..64e1c54b9b3 100644
--- a/drivers/video/omap/lcd_lph8923.c
+++ b/drivers/video/omap/lcd_lph8923.c
@@ -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)
-- 
2.25.4