diff options
Diffstat (limited to 'net/bluetooth/hci_debugfs.c')
| -rw-r--r-- | net/bluetooth/hci_debugfs.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index f625074d1f00..99e2e9fc70e8 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -38,7 +38,7 @@ static ssize_t __name ## _read(struct file *file,			      \  	struct hci_dev *hdev = file->private_data;			      \  	char buf[3];							      \  									      \ -	buf[0] = test_bit(__quirk, &hdev->quirks) ? 'Y' : 'N';		      \ +	buf[0] = test_bit(__quirk, hdev->quirk_flags) ? 'Y' : 'N';	      \  	buf[1] = '\n';							      \  	buf[2] = '\0';							      \  	return simple_read_from_buffer(user_buf, count, ppos, buf, 2);	      \ @@ -59,10 +59,10 @@ static ssize_t __name ## _write(struct file *file,			      \  	if (err)							      \  		return err;						      \  									      \ -	if (enable == test_bit(__quirk, &hdev->quirks))			      \ +	if (enable == test_bit(__quirk, hdev->quirk_flags))		      \  		return -EALREADY;					      \  									      \ -	change_bit(__quirk, &hdev->quirks);				      \ +	change_bit(__quirk, hdev->quirk_flags);				      \  									      \  	return count;							      \  }									      \ @@ -1356,7 +1356,7 @@ static ssize_t vendor_diag_write(struct file *file, const char __user *user_buf,  	 * for the vendor callback. Instead just store the desired value and  	 * the setting will be programmed when the controller gets powered on.  	 */ -	if (test_bit(HCI_QUIRK_NON_PERSISTENT_DIAG, &hdev->quirks) && +	if (hci_test_quirk(hdev, HCI_QUIRK_NON_PERSISTENT_DIAG) &&  	    (!test_bit(HCI_RUNNING, &hdev->flags) ||  	     hci_dev_test_flag(hdev, HCI_USER_CHANNEL)))  		goto done;  | 
