The patch titled leds-add-output-inversion-option-to-backlight-trigger-update has been added to the -mm tree. Its filename is leds-add-output-inversion-option-to-backlight-trigger-update.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: leds-add-output-inversion-option-to-backlight-trigger-update From: Janusz Krzysztofik <jkrzyszt@xxxxxxxxxxxx> - new sysfs file should be documented, - the new sysfs file name could be consistent with the one already used by the gpio trigger for a similiar function. Signed-off-by: Janusz Krzysztofik <jkrzyszt@xxxxxxxxxxxx> Cc: Paul Mundt <lethal@xxxxxxxxxxxx> Cc: Richard Purdie <richard.purdie@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/ABI/testing/sysfs-class-led | 10 ++++++++++ drivers/leds/ledtrig-backlight.c | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff -puN Documentation/ABI/testing/sysfs-class-led~leds-add-output-inversion-option-to-backlight-trigger-update Documentation/ABI/testing/sysfs-class-led --- a/Documentation/ABI/testing/sysfs-class-led~leds-add-output-inversion-option-to-backlight-trigger-update +++ a/Documentation/ABI/testing/sysfs-class-led @@ -26,3 +26,13 @@ Description: scheduler is chosen. Trigger specific parameters can appear in /sys/class/leds/<led> once a given trigger is selected. +What: /sys/class/leds/<led>/inverted +Date: January 2011 +KernelVersion: 2.6.38 +Contact: Richard Purdie <rpurdie@xxxxxxxxx> +Description: + Invert the LED on/off state. This parameter is specific to + gpio and backlight triggers. In case of the backlight trigger, + it is usefull when driving a LED which is intended to indicate + a device in a standby like state. + diff -puN drivers/leds/ledtrig-backlight.c~leds-add-output-inversion-option-to-backlight-trigger-update drivers/leds/ledtrig-backlight.c --- a/drivers/leds/ledtrig-backlight.c~leds-add-output-inversion-option-to-backlight-trigger-update +++ a/drivers/leds/ledtrig-backlight.c @@ -93,7 +93,7 @@ static ssize_t bl_trig_invert_store(stru return num; } -static DEVICE_ATTR(invert, 0644, bl_trig_invert_show, bl_trig_invert_store); +static DEVICE_ATTR(inverted, 0644, bl_trig_invert_show, bl_trig_invert_store); static void bl_trig_activate(struct led_classdev *led) { @@ -108,7 +108,7 @@ static void bl_trig_activate(struct led_ return; } - ret = device_create_file(led->dev, &dev_attr_invert); + ret = device_create_file(led->dev, &dev_attr_inverted); if (ret) goto err_invert; @@ -134,7 +134,7 @@ static void bl_trig_deactivate(struct le (struct bl_trig_notifier *) led->trigger_data; if (n) { - device_remove_file(led->dev, &dev_attr_invert); + device_remove_file(led->dev, &dev_attr_inverted); fb_unregister_client(&n->notifier); kfree(n); } _ Patches currently in -mm which might be from jkrzyszt@xxxxxxxxxxxx are origin.patch linux-next.patch leds-add-output-inversion-option-to-backlight-trigger.patch leds-add-output-inversion-option-to-backlight-trigger-fix.patch leds-add-output-inversion-option-to-backlight-trigger-update.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html