diff options
author | João Paulo Rechi Vita <jprvita@gmail.com> | 2016-01-19 10:42:39 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-02-24 03:04:24 -0500 |
commit | e2a35e89291d70d1c4668b3216f84ec740d36be3 (patch) | |
tree | d4663fabd60a4460f3361546044dcd641743ca36 | |
parent | 1926e260d8d377b95b57a49eefeb54ac42919f53 (diff) |
rfkill: Remove obsolete "claim" sysfs interface
This was scheduled to be removed in 2012 by:
commit 69c86373c6ea1149aa559e6088362d58d8ec8835
Author: florian@mickler.org <florian@mickler.org>
Date: Wed Feb 24 12:05:16 2010 +0100
Document the rfkill sysfs ABI
This moves sysfs ABI info from Documentation/rfkill.txt to the
ABI subfolder and reformats it.
This also schedules the deprecated sysfs parts to be removed in
2012 (claim file) and 2014 (state file).
Signed-off-by: Florian Mickler <florian@mickler.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | Documentation/ABI/obsolete/sysfs-class-rfkill | 9 | ||||
-rw-r--r-- | Documentation/ABI/removed/sysfs-class-rfkill | 13 | ||||
-rw-r--r-- | net/rfkill/core.c | 11 |
3 files changed, 14 insertions, 19 deletions
diff --git a/Documentation/ABI/obsolete/sysfs-class-rfkill b/Documentation/ABI/obsolete/sysfs-class-rfkill index ff60ad9eca4c..e736d145085f 100644 --- a/Documentation/ABI/obsolete/sysfs-class-rfkill +++ b/Documentation/ABI/obsolete/sysfs-class-rfkill | |||
@@ -18,12 +18,3 @@ Values: A numeric value. | |||
18 | 2: RFKILL_STATE_HARD_BLOCKED | 18 | 2: RFKILL_STATE_HARD_BLOCKED |
19 | transmitter is forced off by something outside of | 19 | transmitter is forced off by something outside of |
20 | the driver's control. | 20 | the driver's control. |
21 | |||
22 | What: /sys/class/rfkill/rfkill[0-9]+/claim | ||
23 | Date: 09-Jul-2007 | ||
24 | KernelVersion v2.6.22 | ||
25 | Contact: linux-wireless@vger.kernel.org | ||
26 | Description: This file is deprecated because there no longer is a way to | ||
27 | claim just control over a single rfkill instance. | ||
28 | This file is scheduled to be removed in 2012. | ||
29 | Values: 0: Kernel handles events | ||
diff --git a/Documentation/ABI/removed/sysfs-class-rfkill b/Documentation/ABI/removed/sysfs-class-rfkill new file mode 100644 index 000000000000..3ce6231f20b2 --- /dev/null +++ b/Documentation/ABI/removed/sysfs-class-rfkill | |||
@@ -0,0 +1,13 @@ | |||
1 | rfkill - radio frequency (RF) connector kill switch support | ||
2 | |||
3 | For details to this subsystem look at Documentation/rfkill.txt. | ||
4 | |||
5 | What: /sys/class/rfkill/rfkill[0-9]+/claim | ||
6 | Date: 09-Jul-2007 | ||
7 | KernelVersion v2.6.22 | ||
8 | Contact: linux-wireless@vger.kernel.org | ||
9 | Description: This file was deprecated because there no longer was a way to | ||
10 | claim just control over a single rfkill instance. | ||
11 | This file was scheduled to be removed in 2012, and was removed | ||
12 | in 2016. | ||
13 | Values: 0: Kernel handles events | ||
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 076590e92dde..a805831d5d9b 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c | |||
@@ -311,8 +311,7 @@ static atomic_t rfkill_input_disabled = ATOMIC_INIT(0); | |||
311 | * @blocked: the new state | 311 | * @blocked: the new state |
312 | * | 312 | * |
313 | * This function sets the state of all switches of given type, | 313 | * This function sets the state of all switches of given type, |
314 | * unless a specific switch is claimed by userspace (in which case, | 314 | * unless a specific switch is suspended. |
315 | * that switch is left alone) or suspended. | ||
316 | * | 315 | * |
317 | * Caller must have acquired rfkill_global_mutex. | 316 | * Caller must have acquired rfkill_global_mutex. |
318 | */ | 317 | */ |
@@ -721,20 +720,12 @@ static ssize_t state_store(struct device *dev, struct device_attribute *attr, | |||
721 | } | 720 | } |
722 | static DEVICE_ATTR_RW(state); | 721 | static DEVICE_ATTR_RW(state); |
723 | 722 | ||
724 | static ssize_t claim_show(struct device *dev, struct device_attribute *attr, | ||
725 | char *buf) | ||
726 | { | ||
727 | return sprintf(buf, "%d\n", 0); | ||
728 | } | ||
729 | static DEVICE_ATTR_RO(claim); | ||
730 | |||
731 | static struct attribute *rfkill_dev_attrs[] = { | 723 | static struct attribute *rfkill_dev_attrs[] = { |
732 | &dev_attr_name.attr, | 724 | &dev_attr_name.attr, |
733 | &dev_attr_type.attr, | 725 | &dev_attr_type.attr, |
734 | &dev_attr_index.attr, | 726 | &dev_attr_index.attr, |
735 | &dev_attr_persistent.attr, | 727 | &dev_attr_persistent.attr, |
736 | &dev_attr_state.attr, | 728 | &dev_attr_state.attr, |
737 | &dev_attr_claim.attr, | ||
738 | &dev_attr_soft.attr, | 729 | &dev_attr_soft.attr, |
739 | &dev_attr_hard.attr, | 730 | &dev_attr_hard.attr, |
740 | NULL, | 731 | NULL, |