Changeset 46577995 in mainline for uspace/drv/hid/adb-kbd/main.c
- Timestamp:
- 2018-01-04T20:50:52Z (7 years ago)
- Children:
- e211ea04
- Parents:
- facacc71
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/adb-kbd/main.c
rfacacc71 r46577995 42 42 #define NAME "adb-kbd" 43 43 44 static int adb_kbd_dev_add(ddf_dev_t *dev);45 static int adb_kbd_dev_remove(ddf_dev_t *dev);46 static int adb_kbd_dev_gone(ddf_dev_t *dev);47 static int adb_kbd_fun_online(ddf_fun_t *fun);48 static int adb_kbd_fun_offline(ddf_fun_t *fun);44 static errno_t adb_kbd_dev_add(ddf_dev_t *dev); 45 static errno_t adb_kbd_dev_remove(ddf_dev_t *dev); 46 static errno_t adb_kbd_dev_gone(ddf_dev_t *dev); 47 static errno_t adb_kbd_fun_online(ddf_fun_t *fun); 48 static errno_t adb_kbd_fun_offline(ddf_fun_t *fun); 49 49 50 50 static driver_ops_t driver_ops = { … … 61 61 }; 62 62 63 static int adb_kbd_dev_add(ddf_dev_t *dev)63 static errno_t adb_kbd_dev_add(ddf_dev_t *dev) 64 64 { 65 65 adb_kbd_t *adb_kbd; … … 77 77 } 78 78 79 static int adb_kbd_dev_remove(ddf_dev_t *dev)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); … … 86 86 } 87 87 88 static int adb_kbd_dev_gone(ddf_dev_t *dev)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); … … 95 95 } 96 96 97 static int adb_kbd_fun_online(ddf_fun_t *fun)97 static errno_t adb_kbd_fun_online(ddf_fun_t *fun) 98 98 { 99 99 ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()"); … … 101 101 } 102 102 103 static int adb_kbd_fun_offline(ddf_fun_t *fun)103 static errno_t adb_kbd_fun_offline(ddf_fun_t *fun) 104 104 { 105 105 ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.