[commit] r2424 - trunk/linux-2.6.x/arch/arm/mach-nds/arm7
dslinux_sonny_jim at dslinux.in-berlin.de
dslinux_sonny_jim at dslinux.in-berlin.de
Wed Jul 1 13:41:37 CEST 2009
Author: dslinux_sonny_jim
Date: Wed Jul 1 13:41:37 2009
New Revision: 2424
Log:
Change return value of isDLite to make more sense
Modified:
trunk/linux-2.6.x/arch/arm/mach-nds/arm7/main.c
Modified: trunk/linux-2.6.x/arch/arm/mach-nds/arm7/main.c
==============================================================================
--- trunk/linux-2.6.x/arch/arm/mach-nds/arm7/main.c (original)
+++ trunk/linux-2.6.x/arch/arm/mach-nds/arm7/main.c Wed Jul 1 13:41:37 2009
@@ -20,7 +20,7 @@
int isDSLite(void)
{
- return ((power_read(POWER_BACKLIGHT)) & (1<<6));
+ return !((power_read(POWER_BACKLIGHT)) & (1<<6));
}
/* recieve outstanding FIFO commands from ARM9 */
@@ -59,7 +59,8 @@
cmddata = FIFO_POWER_GET_DATA(data);
switch (cmd) {
case FIFO_POWER_CMD_BACKLIGHT_BRIGHTNESS:
- if (isDSLite() == 0) break;
+ if (isDSLite())
+ break;
switch (cmddata) {
case 0:
data = power_read(POWER_BACKLIGHT);
More information about the dslinux-commit
mailing list