public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Colin Leroy <colin@colino.net>
To: Richard Purdie <rpurdie@openedhand.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] led-class.c permission change
Date: Sat, 5 May 2007 12:49:54 +0200	[thread overview]
Message-ID: <20070505124954.0e2bcf53@localhost.localdomain> (raw)

Hi,

This patch changes the led brightness file's permissions to 0666, so that a 
user's MUA can light up the mail LED without needing root permissions.

Thanks! 

Signed-Off-By: Colin Leroy <colin@colino.net>
--- a/drivers/leds/led-class.c	2007-05-05 12:45:20.000000000 +0200
+++ b/drivers/leds/led-class.c	2007-05-05 12:41:28.000000000 +0200
@@ -56,7 +56,7 @@ static ssize_t led_brightness_store(stru
 	return ret;
 }
 
-static CLASS_DEVICE_ATTR(brightness, 0644, led_brightness_show,
+static CLASS_DEVICE_ATTR(brightness, 0666, led_brightness_show,
 			led_brightness_store);
 #ifdef CONFIG_LEDS_TRIGGERS
 static CLASS_DEVICE_ATTR(trigger, 0644, led_trigger_show, led_trigger_store);


             reply	other threads:[~2007-05-05 17:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 10:49 Colin Leroy [this message]
2007-05-05 21:48 ` [PATCH] led-class.c permission change Alan Cox
2007-05-05 22:20   ` Colin Leroy
2007-05-06 12:37     ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070505124954.0e2bcf53@localhost.localdomain \
    --to=colin@colino.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@openedhand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox