Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

João Paulo Rechi Vita and committed by
Johannes Berg
e2a35e89 1926e260

+14 -19
-9
Documentation/ABI/obsolete/sysfs-class-rfkill
··· 18 18 2: RFKILL_STATE_HARD_BLOCKED 19 19 transmitter is forced off by something outside of 20 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
+13
Documentation/ABI/removed/sysfs-class-rfkill
··· 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
+1 -10
net/rfkill/core.c
··· 311 311 * @blocked: the new state 312 312 * 313 313 * This function sets the state of all switches of given type, 314 - * unless a specific switch is claimed by userspace (in which case, 315 - * that switch is left alone) or suspended. 314 + * unless a specific switch is suspended. 316 315 * 317 316 * Caller must have acquired rfkill_global_mutex. 318 317 */ ··· 720 721 } 721 722 static DEVICE_ATTR_RW(state); 722 723 723 - static ssize_t claim_show(struct device *dev, struct device_attribute *attr, 724 - char *buf) 725 - { 726 - return sprintf(buf, "%d\n", 0); 727 - } 728 - static DEVICE_ATTR_RO(claim); 729 - 730 724 static struct attribute *rfkill_dev_attrs[] = { 731 725 &dev_attr_name.attr, 732 726 &dev_attr_type.attr, 733 727 &dev_attr_index.attr, 734 728 &dev_attr_persistent.attr, 735 729 &dev_attr_state.attr, 736 - &dev_attr_claim.attr, 737 730 &dev_attr_soft.attr, 738 731 &dev_attr_hard.attr, 739 732 NULL,