]> git.baikalelectronics.ru Git - kernel.git/commit
[Bluetooth] Fix userspace breakage due missing class links
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Aug 2008 11:23:53 +0000 (13:23 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Aug 2008 11:23:53 +0000 (13:23 +0200)
commite541418468b24a45163064437ba317d3e9fc55c9
treebad737fb7b8ee6593b3fcddce0233f0eb207ea25
parentbee16b7cfe8c720f2318dd9f83e3b8b5731252b3
[Bluetooth] Fix userspace breakage due missing class links

The Bluetooth adapters and connections are best presented via a class
in sysfs. The removal of the links inside the Bluetooth class broke
assumptions by userspace programs on how to find attached adapters.

This patch creates adapters and connections as part of the Bluetooth
class, but it uses different device types to distinguish them. The
userspace programs can now easily navigate in the sysfs device tree.

The unused platform device and bus have been removed to keep the
code simple and clean.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sysfs.c