[Pommed-commits] r407 - trunk/pommed

jblache at alioth.debian.org jblache at alioth.debian.org
Sat Dec 1 17:51:14 UTC 2007


Author: jblache
Date: 2007-12-01 17:51:14 +0000 (Sat, 01 Dec 2007)
New Revision: 407

Modified:
   trunk/pommed/pommed.c
Log:
Wire up the gma950 backlight code for the MacBook3,1. Testing only for now.


Modified: trunk/pommed/pommed.c
===================================================================
--- trunk/pommed/pommed.c	2007-12-01 17:49:15 UTC (rev 406)
+++ trunk/pommed/pommed.c	2007-12-01 17:51:14 UTC (rev 407)
@@ -240,28 +240,6 @@
 
 #else
 
-/* Dummy backlight ops */
-
-int
-dummy_backlight_probe(void)
-{
-  logmsg(LOG_WARNING, "Backlight not supported on this model yet");
-
-  return 0;
-}
-
-void
-dummy_backlight_step(int dir)
-{
-  /* void */
-}
-
-void
-dummy_backlight_toggle(int lvl)
-{
-  /* void */
-}
-
 struct machine_ops mb_mops[] = {
   /* MacBook Pro machines */
 
@@ -309,9 +287,9 @@
 
   {  /* MacBook3,1 (Core2 Duo Santa Rosa, November 2007) */
     .type = MACHINE_MACBOOK_3,
-    .lcd_backlight_probe = dummy_backlight_probe,
-    .lcd_backlight_step = dummy_backlight_step,
-    .lcd_backlight_toggle = dummy_backlight_toggle,
+    .lcd_backlight_probe = gma950_backlight_probe, /* gma950 supports the gma965 */
+    .lcd_backlight_step = gma950_backlight_step,
+    .lcd_backlight_toggle = gma950_backlight_toggle,
     .evdev_identify = evdev_is_geyser4hf,
   }
 };




More information about the Pommed-commits mailing list