Changeset b7fd2a0 in mainline for uspace/drv/hid/adb-mouse
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/drv/hid/adb-mouse
- Files:
-
- 3 edited
-
adb-mouse.c (modified) (4 diffs)
-
adb-mouse.h (modified) (1 diff)
-
main.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/adb-mouse/adb-mouse.c
r36f0738 rb7fd2a0 97 97 ipc_callid_t callid = async_get_call(&call); 98 98 99 int retval = EOK;99 errno_t retval = EOK; 100 100 101 101 if (!IPC_GET_IMETHOD(call)) { … … 117 117 118 118 /** Add ADB mouse device */ 119 int adb_mouse_add(adb_mouse_t *mouse)120 { 121 int rc;119 errno_t adb_mouse_add(adb_mouse_t *mouse) 120 { 121 errno_t rc; 122 122 bool bound = false; 123 123 … … 188 188 189 189 /** Remove ADB mouse device */ 190 int adb_mouse_remove(adb_mouse_t *con)190 errno_t adb_mouse_remove(adb_mouse_t *con) 191 191 { 192 192 return ENOTSUP; … … 194 194 195 195 /** ADB mouse device gone */ 196 int adb_mouse_gone(adb_mouse_t *con)196 errno_t adb_mouse_gone(adb_mouse_t *con) 197 197 { 198 198 return ENOTSUP; -
uspace/drv/hid/adb-mouse/adb-mouse.h
r36f0738 rb7fd2a0 47 47 } adb_mouse_t; 48 48 49 extern int adb_mouse_add(adb_mouse_t *);50 extern int adb_mouse_remove(adb_mouse_t *);51 extern int adb_mouse_gone(adb_mouse_t *);49 extern errno_t adb_mouse_add(adb_mouse_t *); 50 extern errno_t adb_mouse_remove(adb_mouse_t *); 51 extern errno_t adb_mouse_gone(adb_mouse_t *); 52 52 53 53 #endif -
uspace/drv/hid/adb-mouse/main.c
r36f0738 rb7fd2a0 42 42 #define NAME "adb-mouse" 43 43 44 static int adb_mouse_dev_add(ddf_dev_t *dev);45 static int adb_mouse_dev_remove(ddf_dev_t *dev);46 static int adb_mouse_dev_gone(ddf_dev_t *dev);47 static int adb_mouse_fun_online(ddf_fun_t *fun);48 static int adb_mouse_fun_offline(ddf_fun_t *fun);44 static errno_t adb_mouse_dev_add(ddf_dev_t *dev); 45 static errno_t adb_mouse_dev_remove(ddf_dev_t *dev); 46 static errno_t adb_mouse_dev_gone(ddf_dev_t *dev); 47 static errno_t adb_mouse_fun_online(ddf_fun_t *fun); 48 static errno_t adb_mouse_fun_offline(ddf_fun_t *fun); 49 49 50 50 static driver_ops_t driver_ops = { … … 61 61 }; 62 62 63 static int adb_mouse_dev_add(ddf_dev_t *dev)63 static errno_t adb_mouse_dev_add(ddf_dev_t *dev) 64 64 { 65 65 adb_mouse_t *adb_mouse; … … 77 77 } 78 78 79 static int adb_mouse_dev_remove(ddf_dev_t *dev)79 static errno_t adb_mouse_dev_remove(ddf_dev_t *dev) 80 80 { 81 81 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev); … … 86 86 } 87 87 88 static int adb_mouse_dev_gone(ddf_dev_t *dev)88 static errno_t adb_mouse_dev_gone(ddf_dev_t *dev) 89 89 { 90 90 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev); … … 95 95 } 96 96 97 static int adb_mouse_fun_online(ddf_fun_t *fun)97 static errno_t adb_mouse_fun_online(ddf_fun_t *fun) 98 98 { 99 99 ddf_msg(LVL_DEBUG, "adb_mouse_fun_online()"); … … 101 101 } 102 102 103 static int adb_mouse_fun_offline(ddf_fun_t *fun)103 static errno_t adb_mouse_fun_offline(ddf_fun_t *fun) 104 104 { 105 105 ddf_msg(LVL_DEBUG, "adb_mouse_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.
