diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-03-27 09:14:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:27 -0400 |
commit | 621cac85297de5ba655e3430b007dd2e0da91da6 (patch) | |
tree | 6193ecf0966094bb744fb4238191bcab03a3cdef /Documentation/rfkill.txt | |
parent | c1c6b14b22af0f85d05a70405dc3fba5de840c7b (diff) |
rfkill: remove user_claim stuff
Almost all drivers do not support user_claim, so remove it
completely and always report -EOPNOTSUPP to userspace. Since
userspace cannot really drive rfkill _anyway_ (due to the
odd restrictions imposed by the documentation) having this
code is just pointless.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'Documentation/rfkill.txt')
-rw-r--r-- | Documentation/rfkill.txt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Documentation/rfkill.txt b/Documentation/rfkill.txt index 4d3ee317a4a3..40c3a3f10816 100644 --- a/Documentation/rfkill.txt +++ b/Documentation/rfkill.txt | |||
@@ -521,16 +521,12 @@ status of the system. | |||
521 | Input devices may issue events that are related to rfkill. These are the | 521 | Input devices may issue events that are related to rfkill. These are the |
522 | various KEY_* events and SW_* events supported by rfkill-input.c. | 522 | various KEY_* events and SW_* events supported by rfkill-input.c. |
523 | 523 | ||
524 | ******IMPORTANT****** | 524 | Userspace may not change the state of an rfkill switch in response to an |
525 | When rfkill-input is ACTIVE, userspace is NOT TO CHANGE THE STATE OF AN RFKILL | 525 | input event, it should refrain from changing states entirely. |
526 | SWITCH IN RESPONSE TO AN INPUT EVENT also handled by rfkill-input, unless it | 526 | |
527 | has set to true the user_claim attribute for that particular switch. This rule | 527 | Userspace cannot assume it is the only source of control for rfkill switches. |
528 | is *absolute*; do NOT violate it. | 528 | Their state can change due to firmware actions, direct user actions, and the |
529 | ******IMPORTANT****** | 529 | rfkill-input EPO override for *_RFKILL_ALL. |
530 | |||
531 | Userspace must not assume it is the only source of control for rfkill switches. | ||
532 | Their state CAN and WILL change due to firmware actions, direct user actions, | ||
533 | and the rfkill-input EPO override for *_RFKILL_ALL. | ||
534 | 530 | ||
535 | When rfkill-input is not active, userspace must initiate a rfkill status | 531 | When rfkill-input is not active, userspace must initiate a rfkill status |
536 | change by writing to the "state" attribute in order for anything to happen. | 532 | change by writing to the "state" attribute in order for anything to happen. |