All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rfkill: Make state sysfs writable
@ 2007-07-18 17:59 Ivo van Doorn
  2007-07-18 22:38 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Ivo van Doorn @ 2007-07-18 17:59 UTC (permalink / raw)
  To: davem; +Cc: Dmitry Torokhov, netdev

The rfkill state Sysfs attribute should be made writable,
we already pass the argument for the store handler,
so we only need to update the permissions flag.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>

---

diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index f3986d4..db3395b 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -187,7 +187,7 @@ static ssize_t rfkill_claim_store(struct device *dev,
 static struct device_attribute rfkill_dev_attrs[] = {
 	__ATTR(name, S_IRUGO, rfkill_name_show, NULL),
 	__ATTR(type, S_IRUGO, rfkill_type_show, NULL),
-	__ATTR(state, S_IRUGO, rfkill_state_show, rfkill_state_store),
+	__ATTR(state, S_IRUGO|S_IWUSR, rfkill_state_show, rfkill_state_store),
 	__ATTR(claim, S_IRUGO|S_IWUSR, rfkill_claim_show, rfkill_claim_store),
 	__ATTR_NULL
 };

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rfkill: Make state sysfs writable
  2007-07-18 17:59 [PATCH] rfkill: Make state sysfs writable Ivo van Doorn
@ 2007-07-18 22:38 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-07-18 22:38 UTC (permalink / raw)
  To: ivdoorn; +Cc: dtor, netdev

From: Ivo van Doorn <ivdoorn@gmail.com>
Date: Wed, 18 Jul 2007 19:59:22 +0200

> The rfkill state Sysfs attribute should be made writable,
> we already pass the argument for the store handler,
> so we only need to update the permissions flag.
> 
> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-18 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 17:59 [PATCH] rfkill: Make state sysfs writable Ivo van Doorn
2007-07-18 22:38 ` David Miller

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.