diff for duplicates of <20110106070816.GA15914@linux-sh.org> diff --git a/a/1.txt b/N1/1.txt index b4b479b..84f3823 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -55,15 +55,15 @@ On Thu, Dec 09, 2010 at 02:41:50PM +0100, Janusz Krzysztofik wrote: > > switch (event) { > case FB_EVENT_BLANK : -> - if (*blank && n->old_status = UNBLANK) { -> + if (new_status = n->old_status) +> - if (*blank && n->old_status == UNBLANK) { +> + if (new_status == n->old_status) > + break; > + -> + if ((n->old_status = UNBLANK) ^ n->invert) { +> + if ((n->old_status == UNBLANK) ^ n->invert) { > n->brightness = led->brightness; > led_set_brightness(led, LED_OFF); > - n->old_status = BLANK; -> - } else if (!*blank && n->old_status = BLANK) { +> - } else if (!*blank && n->old_status == BLANK) { > + } else { > led_set_brightness(led, n->brightness); > - n->old_status = UNBLANK; @@ -103,7 +103,7 @@ On Thu, Dec 09, 2010 at 02:41:50PM +0100, Janusz Krzysztofik wrote: > + n->invert = !!invert; > + > + /* After inverting, we need to update the LED. */ -> + if ((n->old_status = BLANK) ^ n->invert) +> + if ((n->old_status == BLANK) ^ n->invert) > + led_set_brightness(led, LED_OFF); > + else > + led_set_brightness(led, n->brightness); diff --git a/a/content_digest b/N1/content_digest index 8c6d65e..f78d97b 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0201012091441.51846.jkrzyszt@tis.icnet.pl\0" "From\0Paul Mundt <lethal@linux-sh.org>\0" "Subject\0Re: [RESEND #2] [PATCH v2] LEDS: Add output invertion option to backlight trigger\0" - "Date\0Thu, 06 Jan 2011 07:08:16 +0000\0" + "Date\0Thu, 6 Jan 2011 16:08:16 +0900\0" "To\0Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>\0" "Cc\0Richard Purdie <rpurdie@rpsys.net>" linux-fbdev@vger.kernel.org <linux-fbdev@vger.kernel.org> @@ -68,15 +68,15 @@ "> \n" "> \tswitch (event) {\n" "> \tcase FB_EVENT_BLANK :\n" - "> -\t\tif (*blank && n->old_status = UNBLANK) {\n" - "> +\t\tif (new_status = n->old_status)\n" + "> -\t\tif (*blank && n->old_status == UNBLANK) {\n" + "> +\t\tif (new_status == n->old_status)\n" "> +\t\t\tbreak;\n" "> +\n" - "> +\t\tif ((n->old_status = UNBLANK) ^ n->invert) {\n" + "> +\t\tif ((n->old_status == UNBLANK) ^ n->invert) {\n" "> \t\t\tn->brightness = led->brightness;\n" "> \t\t\tled_set_brightness(led, LED_OFF);\n" "> -\t\t\tn->old_status = BLANK;\n" - "> -\t\t} else if (!*blank && n->old_status = BLANK) {\n" + "> -\t\t} else if (!*blank && n->old_status == BLANK) {\n" "> +\t\t} else {\n" "> \t\t\tled_set_brightness(led, n->brightness);\n" "> -\t\t\tn->old_status = UNBLANK;\n" @@ -116,7 +116,7 @@ "> +\tn->invert = !!invert;\n" "> +\n" "> +\t/* After inverting, we need to update the LED. */\n" - "> +\tif ((n->old_status = BLANK) ^ n->invert)\n" + "> +\tif ((n->old_status == BLANK) ^ n->invert)\n" "> +\t\tled_set_brightness(led, LED_OFF);\n" "> +\telse\n" "> +\t\tled_set_brightness(led, n->brightness);\n" @@ -165,4 +165,4 @@ "> the body of a message to majordomo@vger.kernel.org\n" > More majordomo info at http://vger.kernel.org/majordomo-info.html -2364ad3ed9d6f3e6f1ead18282acfb352462d7f49e95c8f1d42fa155609a9748 +b42bdc621cbc422a373f0de8d6ea9a8cf3e15b84ff4ac826a6cca7fac9d18642
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.