mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
c1c6b14b22
commit
621cac8529
12 changed files with 9 additions and 72 deletions
|
|
@ -364,7 +364,6 @@ int wimax_rfkill_add(struct wimax_dev *wimax_dev)
|
|||
rfkill->state = RFKILL_STATE_UNBLOCKED;
|
||||
rfkill->data = wimax_dev;
|
||||
rfkill->toggle_radio = wimax_rfkill_toggle_radio;
|
||||
rfkill->user_claim_unsupported = 1;
|
||||
|
||||
/* Initialize the input device for the hw key */
|
||||
input_dev = input_allocate_device();
|
||||
|
|
|
|||
Loading…
Reference in a new issue