Changes in uspace/drv/bus/usb/usbhid/kbd/kbddev.c [c0699467:1dc4a5e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
rc0699467 r1dc4a5e 102 102 103 103 const char *HID_KBD_FUN_NAME = "keyboard"; 104 const char *HID_KBD_C LASS_NAME = "keyboard";104 const char *HID_KBD_CATEGORY_NAME = "keyboard"; 105 105 106 106 static void usb_kbd_set_led(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev); … … 524 524 assert(kbd_dev != NULL); 525 525 526 /* Create the function exposed under /dev/devices. */526 /* Create the exposed function. */ 527 527 usb_log_debug("Creating DDF function %s...\n", HID_KBD_FUN_NAME); 528 528 ddf_fun_t *fun = ddf_fun_create(hid_dev->usb_dev->ddf_dev, fun_exposed, … … 551 551 HID_KBD_FUN_NAME, fun->handle); 552 552 553 usb_log_debug("Adding DDF function to c lass%s...\n",553 usb_log_debug("Adding DDF function to category %s...\n", 554 554 HID_KBD_CLASS_NAME); 555 rc = ddf_fun_add_to_c lass(fun, HID_KBD_CLASS_NAME);555 rc = ddf_fun_add_to_category(fun, HID_KBD_CATEGORY_NAME); 556 556 if (rc != EOK) { 557 557 usb_log_error( 558 "Could not add DDF function to c lass%s: %s.\n",558 "Could not add DDF function to category %s: %s.\n", 559 559 HID_KBD_CLASS_NAME, str_error(rc)); 560 560 ddf_fun_destroy(fun);
Note:
See TracChangeset
for help on using the changeset viewer.