Changes in uspace/drv/bus/usb/usbhid/mouse/mousedev.c [1dc4a5e:c0699467] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r1dc4a5e rc0699467 74 74 const char *HID_MOUSE_FUN_NAME = "mouse"; 75 75 const char *HID_MOUSE_WHEEL_FUN_NAME = "mouse-wheel"; 76 const char *HID_MOUSE_C ATEGORY= "mouse";77 const char *HID_MOUSE_WHEEL_C ATEGORY= "keyboard";76 const char *HID_MOUSE_CLASS_NAME = "mouse"; 77 const char *HID_MOUSE_WHEEL_CLASS_NAME = "keyboard"; 78 78 79 79 /** Default idle rate for mouses. */ … … 325 325 assert(mouse != NULL); 326 326 327 /* Create the exposed function. */327 /* Create the function exposed under /dev/devices. */ 328 328 usb_log_debug("Creating DDF function %s...\n", HID_MOUSE_FUN_NAME); 329 329 ddf_fun_t *fun = ddf_fun_create(hid_dev->usb_dev->ddf_dev, fun_exposed, … … 345 345 } 346 346 347 usb_log_debug("Adding DDF function to c ategory%s...\n",348 HID_MOUSE_C ATEGORY);349 rc = ddf_fun_add_to_c ategory(fun, HID_MOUSE_CATEGORY);347 usb_log_debug("Adding DDF function to class %s...\n", 348 HID_MOUSE_CLASS_NAME); 349 rc = ddf_fun_add_to_class(fun, HID_MOUSE_CLASS_NAME); 350 350 if (rc != EOK) { 351 351 usb_log_error( 352 "Could not add DDF function to c ategory%s: %s.\n",353 HID_MOUSE_C ATEGORY, str_error(rc));352 "Could not add DDF function to class %s: %s.\n", 353 HID_MOUSE_CLASS_NAME, str_error(rc)); 354 354 ddf_fun_destroy(fun); 355 355 return rc; … … 383 383 } 384 384 385 usb_log_debug("Adding DDF function to c ategory%s...\n",386 HID_MOUSE_WHEEL_C ATEGORY);387 rc = ddf_fun_add_to_c ategory(fun, HID_MOUSE_WHEEL_CATEGORY);385 usb_log_debug("Adding DDF function to class %s...\n", 386 HID_MOUSE_WHEEL_CLASS_NAME); 387 rc = ddf_fun_add_to_class(fun, HID_MOUSE_WHEEL_CLASS_NAME); 388 388 if (rc != EOK) { 389 389 usb_log_error( 390 "Could not add DDF function to c ategory%s: %s.\n",391 HID_MOUSE_WHEEL_C ATEGORY, str_error(rc));390 "Could not add DDF function to class %s: %s.\n", 391 HID_MOUSE_WHEEL_CLASS_NAME, str_error(rc)); 392 392 ddf_fun_destroy(fun); 393 393 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.