Changeset 1dc4a5e in mainline for uspace/drv/bus/usb/usbhid


Ignore:
Timestamp:
2011-08-18T13:34:33Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
763e0cd
Parents:
99ac5cf
Message:

Renaming to reflect classes are gone.

Location:
uspace/drv/bus/usb/usbhid
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/kbd/kbddev.c

    r99ac5cf r1dc4a5e  
    102102
    103103const char *HID_KBD_FUN_NAME = "keyboard";
    104 const char *HID_KBD_CLASS_NAME = "keyboard";
     104const char *HID_KBD_CATEGORY_NAME = "keyboard";
    105105
    106106static void usb_kbd_set_led(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev);
     
    551551            HID_KBD_FUN_NAME, fun->handle);
    552552       
    553         usb_log_debug("Adding DDF function to class %s...\n",
     553        usb_log_debug("Adding DDF function to category %s...\n",
    554554            HID_KBD_CLASS_NAME);
    555         rc = ddf_fun_add_to_class(fun, HID_KBD_CLASS_NAME);
     555        rc = ddf_fun_add_to_category(fun, HID_KBD_CATEGORY_NAME);
    556556        if (rc != EOK) {
    557557                usb_log_error(
    558                     "Could not add DDF function to class %s: %s.\n",
     558                    "Could not add DDF function to category %s: %s.\n",
    559559                    HID_KBD_CLASS_NAME, str_error(rc));
    560560                ddf_fun_destroy(fun);
  • uspace/drv/bus/usb/usbhid/mouse/mousedev.c

    r99ac5cf r1dc4a5e  
    7474const char *HID_MOUSE_FUN_NAME = "mouse";
    7575const char *HID_MOUSE_WHEEL_FUN_NAME = "mouse-wheel";
    76 const char *HID_MOUSE_CLASS_NAME = "mouse";
    77 const char *HID_MOUSE_WHEEL_CLASS_NAME = "keyboard";
     76const char *HID_MOUSE_CATEGORY = "mouse";
     77const char *HID_MOUSE_WHEEL_CATEGORY = "keyboard";
    7878
    7979/** Default idle rate for mouses. */
     
    345345        }
    346346       
    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);
     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);
    350350        if (rc != EOK) {
    351351                usb_log_error(
    352                     "Could not add DDF function to class %s: %s.\n",
    353                     HID_MOUSE_CLASS_NAME, str_error(rc));
     352                    "Could not add DDF function to category %s: %s.\n",
     353                    HID_MOUSE_CATEGORY, str_error(rc));
    354354                ddf_fun_destroy(fun);
    355355                return rc;
     
    383383        }
    384384       
    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);
     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);
    388388        if (rc != EOK) {
    389389                usb_log_error(
    390                     "Could not add DDF function to class %s: %s.\n",
    391                     HID_MOUSE_WHEEL_CLASS_NAME, str_error(rc));
     390                    "Could not add DDF function to category %s: %s.\n",
     391                    HID_MOUSE_WHEEL_CATEGORY, str_error(rc));
    392392                ddf_fun_destroy(fun);
    393393                return rc;
  • uspace/drv/bus/usb/usbhid/mouse/mousedev.h

    r99ac5cf r1dc4a5e  
    5959
    6060const char *HID_MOUSE_FUN_NAME;
    61 const char *HID_MOUSE_CLASS_NAME;
     61const char *HID_MOUSE_CATEGORY;
    6262
    6363/*----------------------------------------------------------------------------*/
  • uspace/drv/bus/usb/usbhid/multimedia/multimedia.c

    r99ac5cf r1dc4a5e  
    205205        }
    206206       
    207         usb_log_debug("%s function created (jandle: %" PRIun ").\n",
     207        usb_log_debug("%s function created (handle: %" PRIun ").\n",
    208208            NAME, fun->handle);
    209209       
    210         rc = ddf_fun_add_to_class(fun, "keyboard");
     210        rc = ddf_fun_add_to_category(fun, "keyboard");
    211211        if (rc != EOK) {
    212212                usb_log_error(
    213                     "Could not add DDF function to class 'keyboard': %s.\n",
     213                    "Could not add DDF function to category 'keyboard': %s.\n",
    214214                    str_error(rc));
    215215                // TODO: Can / should I destroy the DDF function?
Note: See TracChangeset for help on using the changeset viewer.