Bluetooth: Remove hdev->ioctl driver callback
Since there is no use of hdev->ioctl by any Bluetooth driver since ever, so just lets remove it. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
e93ac9c063
commit
324d36ed26
@ -287,7 +287,6 @@ struct hci_dev {
|
|||||||
int (*setup)(struct hci_dev *hdev);
|
int (*setup)(struct hci_dev *hdev);
|
||||||
int (*send)(struct sk_buff *skb);
|
int (*send)(struct sk_buff *skb);
|
||||||
void (*notify)(struct hci_dev *hdev, unsigned int evt);
|
void (*notify)(struct hci_dev *hdev, unsigned int evt);
|
||||||
int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define HCI_PHY_HANDLE(handle) (handle & 0xff)
|
#define HCI_PHY_HANDLE(handle) (handle & 0xff)
|
||||||
|
@ -553,10 +553,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
|
|||||||
return hci_sock_blacklist_del(hdev, (void __user *) arg);
|
return hci_sock_blacklist_del(hdev, (void __user *) arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hdev->ioctl)
|
return -ENOIOCTLCMD;
|
||||||
return hdev->ioctl(hdev, cmd, arg);
|
|
||||||
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
|
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
|
||||||
|
Loading…
Reference in New Issue
Block a user