Bluetooth: Let HIDP grab the device reference for connections
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:22:15 +0000 (14:22 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:22:15 +0000 (14:22 -0700)
commitedad63886993d18ab800c49f6587a93432ef8b35
tree3513335d25e260daed72ecc0bdf19b0fd8bdcac2
parent9eba32b86d17ef87131fa0bce43c614904ab5781
Bluetooth: Let HIDP grab the device reference for connections

The core exports the hci_conn_hold_device() and hci_conn_put_device()
functions for device reference of connections. Use this to ensure that
the uevents from the parent are send after the child ones.

Based on a report by Brian Rogers <brian@xyzw.org>

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