Skip to contentSkip to conversation

rfkill: Make state sysfs writable

PATCH Applied Ivo van Doorn 2 participants 2 messages Jul 18, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rfkill: Make state sysfs writable

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.

---

net/rfkill/rfkill.c +1 -1
index f3986d4..db3395b 100644
@@ -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
 };
maintainer Applied
#1 lore raw

From: Ivo van Doorn <[email protected]>
Date: Wed, 18 Jul 2007 19:59:22 +0200

Quoted 5 lines

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.

Applied, thanks.