Changes in uspace/drv/bus/usb/usbhid/kbd/kbddev.c [1dc4a5e:c0699467] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
r1dc4a5e rc0699467 102 102 103 103 const char *HID_KBD_FUN_NAME = "keyboard"; 104 const char *HID_KBD_C ATEGORY_NAME = "keyboard";104 const char *HID_KBD_CLASS_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 exposed function. */526 /* Create the function exposed under /dev/devices. */ 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 ategory%s...\n",553 usb_log_debug("Adding DDF function to class %s...\n", 554 554 HID_KBD_CLASS_NAME); 555 rc = ddf_fun_add_to_c ategory(fun, HID_KBD_CATEGORY_NAME);555 rc = ddf_fun_add_to_class(fun, HID_KBD_CLASS_NAME); 556 556 if (rc != EOK) { 557 557 usb_log_error( 558 "Could not add DDF function to c ategory%s: %s.\n",558 "Could not add DDF function to class %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.