Changeset 1dc4a5e in mainline for uspace/drv/bus/usb/usbhid/mouse/mousedev.c
- Timestamp:
- 2011-08-18T13:34:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 763e0cd
- Parents:
- 99ac5cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r99ac5cf r1dc4a5e 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 LASS_NAME= "mouse";77 const char *HID_MOUSE_WHEEL_C LASS_NAME= "keyboard";76 const char *HID_MOUSE_CATEGORY = "mouse"; 77 const char *HID_MOUSE_WHEEL_CATEGORY = "keyboard"; 78 78 79 79 /** Default idle rate for mouses. */ … … 345 345 } 346 346 347 usb_log_debug("Adding DDF function to c lass%s...\n",348 HID_MOUSE_C LASS_NAME);349 rc = ddf_fun_add_to_c lass(fun, HID_MOUSE_CLASS_NAME);347 usb_log_debug("Adding DDF function to category %s...\n", 348 HID_MOUSE_CATEGORY); 349 rc = ddf_fun_add_to_category(fun, HID_MOUSE_CATEGORY); 350 350 if (rc != EOK) { 351 351 usb_log_error( 352 "Could not add DDF function to c lass%s: %s.\n",353 HID_MOUSE_C LASS_NAME, str_error(rc));352 "Could not add DDF function to category %s: %s.\n", 353 HID_MOUSE_CATEGORY, 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 lass%s...\n",386 HID_MOUSE_WHEEL_C LASS_NAME);387 rc = ddf_fun_add_to_c lass(fun, HID_MOUSE_WHEEL_CLASS_NAME);385 usb_log_debug("Adding DDF function to category %s...\n", 386 HID_MOUSE_WHEEL_CATEGORY); 387 rc = ddf_fun_add_to_category(fun, HID_MOUSE_WHEEL_CATEGORY); 388 388 if (rc != EOK) { 389 389 usb_log_error( 390 "Could not add DDF function to c lass%s: %s.\n",391 HID_MOUSE_WHEEL_C LASS_NAME, str_error(rc));390 "Could not add DDF function to category %s: %s.\n", 391 HID_MOUSE_WHEEL_CATEGORY, str_error(rc)); 392 392 ddf_fun_destroy(fun); 393 393 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.