'struct device *' -> 'device-t'

This commit is contained in:
plunky 2007-11-10 12:33:21 +00:00
parent bea40b2aa3
commit fb65dc6e6b
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hci.h,v 1.15 2007/11/03 17:20:17 plunky Exp $ */
/* $NetBSD: hci.h,v 1.16 2007/11/10 12:33:21 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -54,7 +54,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: hci.h,v 1.15 2007/11/03 17:20:17 plunky Exp $
* $Id: hci.h,v 1.16 2007/11/10 12:33:21 plunky Exp $
* $FreeBSD: src/sys/netgraph/bluetooth/include/ng_hci.h,v 1.6 2005/01/07 01:45:43 imp Exp $
*/
@ -2103,7 +2103,7 @@ struct hci_memo {
*/
struct hci_unit {
void *hci_softc; /* ptr to device softc */
struct device *hci_bthub; /* bthub(4) handle */
device_t hci_bthub; /* bthub(4) handle */
/* device info */
const char *hci_devname; /* device name */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hci_unit.c,v 1.5 2007/10/08 16:18:05 ad Exp $ */
/* $NetBSD: hci_unit.c,v 1.6 2007/11/10 12:33:21 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.5 2007/10/08 16:18:05 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.6 2007/11/10 12:33:21 plunky Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@ -158,7 +158,7 @@ hci_enable(struct hci_unit *unit)
/*
* Attach Bluetooth Device Hub
*/
unit->hci_bthub = config_found_ia((struct device *)unit->hci_softc,
unit->hci_bthub = config_found_ia((device_t)unit->hci_softc,
"btbus", &unit->hci_bdaddr, NULL);
return 0;