Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test/test2/test2.c

    r267f235 rb7fd2a0  
    4040#define NAME "test2"
    4141
    42 static int test2_dev_add(ddf_dev_t *dev);
    43 static int test2_dev_remove(ddf_dev_t *dev);
    44 static int test2_dev_gone(ddf_dev_t *dev);
    45 static int test2_fun_online(ddf_fun_t *fun);
    46 static int test2_fun_offline(ddf_fun_t *fun);
     42static errno_t test2_dev_add(ddf_dev_t *dev);
     43static errno_t test2_dev_remove(ddf_dev_t *dev);
     44static errno_t test2_dev_gone(ddf_dev_t *dev);
     45static errno_t test2_fun_online(ddf_fun_t *fun);
     46static errno_t test2_fun_offline(ddf_fun_t *fun);
    4747
    4848static driver_ops_t driver_ops = {
     
    7777 * @param score Device match score.
    7878 */
    79 static int register_fun_verbose(ddf_dev_t *parent, const char *message,
     79static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,
    8080    const char *name, const char *match_id, int match_score, ddf_fun_t **pfun)
    8181{
    8282        ddf_fun_t *fun;
    83         int rc;
     83        errno_t rc;
    8484
    8585        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    118118 * @return Always EOK.
    119119 */
    120 static int plug_unplug(void *arg)
     120static errno_t plug_unplug(void *arg)
    121121{
    122122        test2_t *test2 = (test2_t *) arg;
    123123        ddf_fun_t *fun_a;
    124         int rc;
     124        errno_t rc;
    125125
    126126        async_usleep(1000);
     
    157157}
    158158
    159 static int fun_remove(ddf_fun_t *fun, const char *name)
    160 {
    161         int rc;
     159static errno_t fun_remove(ddf_fun_t *fun, const char *name)
     160{
     161        errno_t rc;
    162162
    163163        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    178178}
    179179
    180 static int fun_unbind(ddf_fun_t *fun, const char *name)
    181 {
    182         int rc;
     180static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
     181{
     182        errno_t rc;
    183183
    184184        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    193193}
    194194
    195 static int test2_dev_add(ddf_dev_t *dev)
     195static errno_t test2_dev_add(ddf_dev_t *dev)
    196196{
    197197        test2_t *test2;
     
    224224}
    225225
    226 static int test2_dev_remove(ddf_dev_t *dev)
     226static errno_t test2_dev_remove(ddf_dev_t *dev)
    227227{
    228228        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    229         int rc;
     229        errno_t rc;
    230230
    231231        ddf_msg(LVL_DEBUG, "test2_dev_remove(%p)", dev);
     
    258258}
    259259
    260 static int test2_dev_gone(ddf_dev_t *dev)
     260static errno_t test2_dev_gone(ddf_dev_t *dev)
    261261{
    262262        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    263         int rc;
     263        errno_t rc;
    264264
    265265        ddf_msg(LVL_DEBUG, "test2_dev_gone(%p)", dev);
     
    293293
    294294
    295 static int test2_fun_online(ddf_fun_t *fun)
     295static errno_t test2_fun_online(ddf_fun_t *fun)
    296296{
    297297        ddf_msg(LVL_DEBUG, "test2_fun_online()");
     
    299299}
    300300
    301 static int test2_fun_offline(ddf_fun_t *fun)
     301static errno_t test2_fun_offline(ddf_fun_t *fun)
    302302{
    303303        ddf_msg(LVL_DEBUG, "test2_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.