Changeset 1433ecda in mainline for uspace/drv/hid/adb-kbd/main.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/adb-kbd/main.c
r47b2d7e3 r1433ecda 65 65 adb_kbd_t *adb_kbd; 66 66 67 67 ddf_msg(LVL_DEBUG, "adb_kbd_dev_add(%p)", dev); 68 68 adb_kbd = ddf_dev_data_alloc(dev, sizeof(adb_kbd_t)); 69 69 if (adb_kbd == NULL) { … … 79 79 static errno_t adb_kbd_dev_remove(ddf_dev_t *dev) 80 80 { 81 81 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev); 82 82 83 83 ddf_msg(LVL_DEBUG, "adb_kbd_dev_remove(%p)", dev); 84 84 85 85 return adb_kbd_remove(adb_kbd); 86 86 } 87 87 88 88 static errno_t adb_kbd_dev_gone(ddf_dev_t *dev) 89 89 { 90 90 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev); 91 91 92 92 ddf_msg(LVL_DEBUG, "adb_kbd_dev_gone(%p)", dev); 93 93 94 94 return adb_kbd_gone(adb_kbd); 95 95 } 96 96 97 97 static errno_t adb_kbd_fun_online(ddf_fun_t *fun) 98 98 { 99 100 99 ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()"); 100 return ddf_fun_online(fun); 101 101 } 102 102 103 103 static errno_t adb_kbd_fun_offline(ddf_fun_t *fun) 104 104 { 105 106 105 ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()"); 106 return ddf_fun_offline(fun); 107 107 } 108 108
Note:
See TracChangeset
for help on using the changeset viewer.