diff options
-rw-r--r-- | arch/arm/mach-pxa/tosa-bt.c | 4 | ||||
-rw-r--r-- | drivers/net/usb/hso.c | 4 | ||||
-rw-r--r-- | include/linux/rfkill.h | 8 | ||||
-rw-r--r-- | net/wimax/op-rfkill.c | 8 |
4 files changed, 8 insertions, 16 deletions
diff --git a/arch/arm/mach-pxa/tosa-bt.c b/arch/arm/mach-pxa/tosa-bt.c index fb0294bd4310..bde42aa29374 100644 --- a/arch/arm/mach-pxa/tosa-bt.c +++ b/arch/arm/mach-pxa/tosa-bt.c | |||
@@ -38,9 +38,9 @@ static void tosa_bt_off(struct tosa_bt_data *data) | |||
38 | static int tosa_bt_toggle_radio(void *data, enum rfkill_state state) | 38 | static int tosa_bt_toggle_radio(void *data, enum rfkill_state state) |
39 | { | 39 | { |
40 | pr_info("BT_RADIO going: %s\n", | 40 | pr_info("BT_RADIO going: %s\n", |
41 | state == RFKILL_STATE_ON ? "on" : "off"); | 41 | state == RFKILL_STATE_UNBLOCKED ? "on" : "off"); |
42 | 42 | ||
43 | if (state == RFKILL_STATE_ON) { | 43 | if (state == RFKILL_STATE_UNBLOCKED) { |
44 | pr_info("TOSA_BT: going ON\n"); | 44 | pr_info("TOSA_BT: going ON\n"); |
45 | tosa_bt_on(data); | 45 | tosa_bt_on(data); |
46 | } else { | 46 | } else { |
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index f84b78d94c40..d696e5fbc176 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -2484,7 +2484,7 @@ static int add_net_device(struct hso_device *hso_dev) | |||
2484 | static int hso_radio_toggle(void *data, enum rfkill_state state) | 2484 | static int hso_radio_toggle(void *data, enum rfkill_state state) |
2485 | { | 2485 | { |
2486 | struct hso_device *hso_dev = data; | 2486 | struct hso_device *hso_dev = data; |
2487 | int enabled = (state == RFKILL_STATE_ON); | 2487 | int enabled = (state == RFKILL_STATE_UNBLOCKED); |
2488 | int rv; | 2488 | int rv; |
2489 | 2489 | ||
2490 | mutex_lock(&hso_dev->mutex); | 2490 | mutex_lock(&hso_dev->mutex); |
@@ -2522,7 +2522,7 @@ static void hso_create_rfkill(struct hso_device *hso_dev, | |||
2522 | snprintf(rfkn, 20, "hso-%d", | 2522 | snprintf(rfkn, 20, "hso-%d", |
2523 | interface->altsetting->desc.bInterfaceNumber); | 2523 | interface->altsetting->desc.bInterfaceNumber); |
2524 | hso_net->rfkill->name = rfkn; | 2524 | hso_net->rfkill->name = rfkn; |
2525 | hso_net->rfkill->state = RFKILL_STATE_ON; | 2525 | hso_net->rfkill->state = RFKILL_STATE_UNBLOCKED; |
2526 | hso_net->rfkill->data = hso_dev; | 2526 | hso_net->rfkill->data = hso_dev; |
2527 | hso_net->rfkill->toggle_radio = hso_radio_toggle; | 2527 | hso_net->rfkill->toggle_radio = hso_radio_toggle; |
2528 | if (rfkill_register(hso_net->rfkill) < 0) { | 2528 | if (rfkill_register(hso_net->rfkill) < 0) { |
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index 164332cbb77c..e1ec7d9aa49c 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h | |||
@@ -52,14 +52,6 @@ enum rfkill_state { | |||
52 | RFKILL_STATE_MAX, /* marker for last valid state */ | 52 | RFKILL_STATE_MAX, /* marker for last valid state */ |
53 | }; | 53 | }; |
54 | 54 | ||
55 | /* | ||
56 | * These are DEPRECATED, drivers using them should be verified to | ||
57 | * comply with the rfkill usage guidelines in Documentation/rfkill.txt | ||
58 | * and then converted to use the new names for rfkill_state | ||
59 | */ | ||
60 | #define RFKILL_STATE_OFF RFKILL_STATE_SOFT_BLOCKED | ||
61 | #define RFKILL_STATE_ON RFKILL_STATE_UNBLOCKED | ||
62 | |||
63 | /** | 55 | /** |
64 | * struct rfkill - rfkill control structure. | 56 | * struct rfkill - rfkill control structure. |
65 | * @name: Name of the switch. | 57 | * @name: Name of the switch. |
diff --git a/net/wimax/op-rfkill.c b/net/wimax/op-rfkill.c index 2b75aee04217..870032faece2 100644 --- a/net/wimax/op-rfkill.c +++ b/net/wimax/op-rfkill.c | |||
@@ -113,7 +113,7 @@ void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, | |||
113 | if (state != wimax_dev->rf_hw) { | 113 | if (state != wimax_dev->rf_hw) { |
114 | wimax_dev->rf_hw = state; | 114 | wimax_dev->rf_hw = state; |
115 | rfkill_state = state == WIMAX_RF_ON ? | 115 | rfkill_state = state == WIMAX_RF_ON ? |
116 | RFKILL_STATE_OFF : RFKILL_STATE_ON; | 116 | RFKILL_STATE_UNBLOCKED : RFKILL_STATE_SOFT_BLOCKED; |
117 | if (wimax_dev->rf_hw == WIMAX_RF_ON | 117 | if (wimax_dev->rf_hw == WIMAX_RF_ON |
118 | && wimax_dev->rf_sw == WIMAX_RF_ON) | 118 | && wimax_dev->rf_sw == WIMAX_RF_ON) |
119 | wimax_state = WIMAX_ST_READY; | 119 | wimax_state = WIMAX_ST_READY; |
@@ -259,10 +259,10 @@ int wimax_rfkill_toggle_radio(void *data, enum rfkill_state state) | |||
259 | 259 | ||
260 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | 260 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); |
261 | switch (state) { | 261 | switch (state) { |
262 | case RFKILL_STATE_ON: | 262 | case RFKILL_STATE_SOFT_BLOCKED: |
263 | rf_state = WIMAX_RF_OFF; | 263 | rf_state = WIMAX_RF_OFF; |
264 | break; | 264 | break; |
265 | case RFKILL_STATE_OFF: | 265 | case RFKILL_STATE_UNBLOCKED: |
266 | rf_state = WIMAX_RF_ON; | 266 | rf_state = WIMAX_RF_ON; |
267 | break; | 267 | break; |
268 | default: | 268 | default: |
@@ -361,7 +361,7 @@ int wimax_rfkill_add(struct wimax_dev *wimax_dev) | |||
361 | wimax_dev->rfkill = rfkill; | 361 | wimax_dev->rfkill = rfkill; |
362 | 362 | ||
363 | rfkill->name = wimax_dev->name; | 363 | rfkill->name = wimax_dev->name; |
364 | rfkill->state = RFKILL_STATE_OFF; | 364 | rfkill->state = RFKILL_STATE_UNBLOCKED; |
365 | rfkill->data = wimax_dev; | 365 | rfkill->data = wimax_dev; |
366 | rfkill->toggle_radio = wimax_rfkill_toggle_radio; | 366 | rfkill->toggle_radio = wimax_rfkill_toggle_radio; |
367 | rfkill->user_claim_unsupported = 1; | 367 | rfkill->user_claim_unsupported = 1; |