diff options
Diffstat (limited to 'net/bluetooth/hci_debugfs.c')
| -rw-r--r-- | net/bluetooth/hci_debugfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index 65261e5d4b84..bc801e9db834 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c | |||
| @@ -247,7 +247,7 @@ static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, | |||
| 247 | struct hci_dev *hdev = file->private_data; | 247 | struct hci_dev *hdev = file->private_data; |
| 248 | char buf[3]; | 248 | char buf[3]; |
| 249 | 249 | ||
| 250 | buf[0] = test_bit(HCI_USE_DEBUG_KEYS, &hdev->dev_flags) ? 'Y': 'N'; | 250 | buf[0] = hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS) ? 'Y': 'N'; |
| 251 | buf[1] = '\n'; | 251 | buf[1] = '\n'; |
| 252 | buf[2] = '\0'; | 252 | buf[2] = '\0'; |
| 253 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); | 253 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); |
| @@ -265,7 +265,7 @@ static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, | |||
| 265 | struct hci_dev *hdev = file->private_data; | 265 | struct hci_dev *hdev = file->private_data; |
| 266 | char buf[3]; | 266 | char buf[3]; |
| 267 | 267 | ||
| 268 | buf[0] = test_bit(HCI_SC_ONLY, &hdev->dev_flags) ? 'Y': 'N'; | 268 | buf[0] = hci_dev_test_flag(hdev, HCI_SC_ONLY) ? 'Y': 'N'; |
| 269 | buf[1] = '\n'; | 269 | buf[1] = '\n'; |
| 270 | buf[2] = '\0'; | 270 | buf[2] = '\0'; |
| 271 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); | 271 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); |
| @@ -679,7 +679,7 @@ static ssize_t force_static_address_read(struct file *file, | |||
| 679 | struct hci_dev *hdev = file->private_data; | 679 | struct hci_dev *hdev = file->private_data; |
| 680 | char buf[3]; | 680 | char buf[3]; |
| 681 | 681 | ||
| 682 | buf[0] = test_bit(HCI_FORCE_STATIC_ADDR, &hdev->dbg_flags) ? 'Y': 'N'; | 682 | buf[0] = hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ? 'Y': 'N'; |
| 683 | buf[1] = '\n'; | 683 | buf[1] = '\n'; |
| 684 | buf[2] = '\0'; | 684 | buf[2] = '\0'; |
| 685 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); | 685 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); |
| @@ -704,10 +704,10 @@ static ssize_t force_static_address_write(struct file *file, | |||
| 704 | if (strtobool(buf, &enable)) | 704 | if (strtobool(buf, &enable)) |
| 705 | return -EINVAL; | 705 | return -EINVAL; |
| 706 | 706 | ||
| 707 | if (enable == test_bit(HCI_FORCE_STATIC_ADDR, &hdev->dbg_flags)) | 707 | if (enable == hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR)) |
| 708 | return -EALREADY; | 708 | return -EALREADY; |
| 709 | 709 | ||
| 710 | change_bit(HCI_FORCE_STATIC_ADDR, &hdev->dbg_flags); | 710 | hci_dev_change_flag(hdev, HCI_FORCE_STATIC_ADDR); |
| 711 | 711 | ||
| 712 | return count; | 712 | return count; |
| 713 | } | 713 | } |
