r2115 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Fri Jun 1 23:41:55 CEST 2007


Author: laforge
Date: 2007-06-01 23:41:54 +0200 (Fri, 01 Jun 2007)
New Revision: 2115

Modified:
   trunk/src/target/kernel/patches/gta01-backlight.patch
Log:
fix GTA01 backlight driver / 2.6.21.x kernel API


Modified: trunk/src/target/kernel/patches/gta01-backlight.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-backlight.patch	2007-06-01 15:54:56 UTC (rev 2114)
+++ trunk/src/target/kernel/patches/gta01-backlight.patch	2007-06-01 21:41:54 UTC (rev 2115)
@@ -1,9 +1,9 @@
 This is a backlight driver for FIC's Neo1973 Phone (codename GTA01)
 
-Index: linux-2.6.21-moko/drivers/video/backlight/Kconfig
+Index: linux-2.6.21.3-moko/drivers/video/backlight/Kconfig
 ===================================================================
---- linux-2.6.21-moko.orig/drivers/video/backlight/Kconfig
-+++ linux-2.6.21-moko/drivers/video/backlight/Kconfig
+--- linux-2.6.21.3-moko.orig/drivers/video/backlight/Kconfig
++++ linux-2.6.21.3-moko/drivers/video/backlight/Kconfig
 @@ -48,6 +48,14 @@
  	  If you have a Sharp Zaurus SL-5500 (Collie) or SL-5600 (Poodle) say y to
  	  enable the LCD/backlight driver.
@@ -19,10 +19,10 @@
  config BACKLIGHT_HP680
  	tristate "HP Jornada 680 Backlight Driver"
  	depends on BACKLIGHT_CLASS_DEVICE && SH_HP6XX
-Index: linux-2.6.21-moko/drivers/video/backlight/Makefile
+Index: linux-2.6.21.3-moko/drivers/video/backlight/Makefile
 ===================================================================
---- linux-2.6.21-moko.orig/drivers/video/backlight/Makefile
-+++ linux-2.6.21-moko/drivers/video/backlight/Makefile
+--- linux-2.6.21.3-moko.orig/drivers/video/backlight/Makefile
++++ linux-2.6.21.3-moko/drivers/video/backlight/Makefile
 @@ -3,6 +3,7 @@
  obj-$(CONFIG_LCD_CLASS_DEVICE)     += lcd.o
  obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o
@@ -31,11 +31,11 @@
  obj-$(CONFIG_BACKLIGHT_HP680)	+= hp680_bl.o
  obj-$(CONFIG_BACKLIGHT_LOCOMO)	+= locomolcd.o
  obj-$(CONFIG_BACKLIGHT_PROGEAR) += progear_bl.o
-Index: linux-2.6.21-moko/drivers/video/backlight/gta01_bl.c
+Index: linux-2.6.21.3-moko/drivers/video/backlight/gta01_bl.c
 ===================================================================
 --- /dev/null
-+++ linux-2.6.21-moko/drivers/video/backlight/gta01_bl.c
-@@ -0,0 +1,286 @@
++++ linux-2.6.21.3-moko/drivers/video/backlight/gta01_bl.c
+@@ -0,0 +1,288 @@
 +/*
 + *  Backlight Driver for FIC GTA01 (Neo1973) GSM Phone
 + *
@@ -267,6 +267,8 @@
 +
 +	gta01bl_prop.power = FB_BLANK_UNBLANK;
 +	gta01bl_prop.brightness = gta01bl_prop.max_brightness;
++	memcpy(&gta01_backlight_device->props,
++	       &gta01bl_prop, sizeof(gta01bl_prop));
 +	gta01bl_send_intensity(gta01_backlight_device);
 +
 +	printk("GTA01 Backlight Driver Initialized.\n");





More information about the commitlog mailing list