mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
[Bluetooth] Use real devices for host controllers
This patch converts the Bluetooth class devices into real devices. The Bluetooth class is kept and the driver core provides the appropriate symlinks for backward compatibility. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
David S. Miller
parent
27d3528425
commit
a91f2e396f
@@ -175,6 +175,6 @@ extern int hci_sock_cleanup(void);
|
||||
extern int bt_sysfs_init(void);
|
||||
extern void bt_sysfs_cleanup(void);
|
||||
|
||||
extern struct class bt_class;
|
||||
extern struct class *bt_class;
|
||||
|
||||
#endif /* __BLUETOOTH_H */
|
||||
|
||||
@@ -124,8 +124,8 @@ struct hci_dev {
|
||||
|
||||
atomic_t promisc;
|
||||
|
||||
struct device *dev;
|
||||
struct class_device class_dev;
|
||||
struct device *parent;
|
||||
struct device dev;
|
||||
|
||||
struct module *owner;
|
||||
|
||||
@@ -413,7 +413,7 @@ static inline int hci_recv_frame(struct sk_buff *skb)
|
||||
int hci_register_sysfs(struct hci_dev *hdev);
|
||||
void hci_unregister_sysfs(struct hci_dev *hdev);
|
||||
|
||||
#define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->class_dev.dev = (pdev))
|
||||
#define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->parent = (pdev))
|
||||
|
||||
/* ----- LMP capabilities ----- */
|
||||
#define lmp_rswitch_capable(dev) ((dev)->features[0] & LMP_RSWITCH)
|
||||
|
||||
Reference in New Issue
Block a user