From c791fde2d5cfe6fd93e1a88c47808842e7fe17a4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 29 Sep 2008 12:18:39 +0200 Subject: Set major and minor class in one go --- plugins/hal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/hal.c') diff --git a/plugins/hal.c b/plugins/hal.c index 907c1cb7..130c76de 100644 --- a/plugins/hal.c +++ b/plugins/hal.c @@ -79,8 +79,7 @@ static void formfactor_reply(DBusPendingCall *call, void *user_data) /* Computer major class */ debug("Setting 0x%06x for major/minor device class", (1 << 8) | minor); - set_major_class(dd, cls, 0x01); - set_minor_class(dd, cls, minor); + set_major_and_minor_class(dd, cls, 0x01, minor); hci_close_dev(dd); } -- cgit