patch-2.4.22 linux-2.4.22/arch/ppc/platforms/pmac_backlight.c
Next file: linux-2.4.22/arch/ppc/platforms/pmac_feature.c
Previous file: linux-2.4.22/arch/ppc/platforms/pal4_setup.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc/platforms/pmac_backlight.c
- Orig date:
2003-06-13 07:51:31.000000000 -0700
diff -urN linux-2.4.21/arch/ppc/platforms/pmac_backlight.c linux-2.4.22/arch/ppc/platforms/pmac_backlight.c
@@ -1,7 +1,7 @@
/*
* Miscellaneous procedures for dealing with the PowerMac hardware.
* Contains support for the backlight.
- *
+ *
* Copyright (C) 2000 Benjamin Herrenschmidt
*
*/
@@ -38,7 +38,7 @@
int valid = 0;
bk_node = find_devices("backlight");
-
+
#ifdef CONFIG_ADB_PMU
/* Special case for the old PowerBook since I can't test on it */
backlight_autosave = machine_is_compatible("AAPL,3400/2400")
@@ -58,7 +58,7 @@
return;
backlighter = ctrler;
backlighter_data = data;
-
+
if (bk_node && !backlight_autosave)
prop = get_property(bk_node, "bklt", NULL);
else
@@ -68,7 +68,7 @@
if (backlight_level > BACKLIGHT_MAX)
backlight_level = BACKLIGHT_MAX;
}
-
+
#ifdef CONFIG_ADB_PMU
if (backlight_autosave) {
struct adb_request req;
@@ -97,7 +97,7 @@
set_backlight_enable(int enable)
{
int rc;
-
+
if (!backlighter)
return -ENODEV;
rc = backlighter->set_enable(enable, backlight_level, backlighter_data);
@@ -118,7 +118,7 @@
set_backlight_level(int level)
{
int rc = 0;
-
+
if (!backlighter)
return -ENODEV;
if (level < BACKLIGHT_MIN)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)