Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r74017ce  
    4040#include "test1.h"
    4141
    42 static errno_t test1_dev_add(ddf_dev_t *dev);
    43 static errno_t test1_dev_remove(ddf_dev_t *dev);
    44 static errno_t test1_dev_gone(ddf_dev_t *dev);
    45 static errno_t test1_fun_online(ddf_fun_t *fun);
    46 static errno_t test1_fun_offline(ddf_fun_t *fun);
     42static int test1_dev_add(ddf_dev_t *dev);
     43static int test1_dev_remove(ddf_dev_t *dev);
     44static int test1_dev_gone(ddf_dev_t *dev);
     45static int test1_fun_online(ddf_fun_t *fun);
     46static int test1_fun_offline(ddf_fun_t *fun);
    4747
    4848static driver_ops_t driver_ops = {
     
    7373 * @param score Device match score.
    7474 */
    75 static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,
     75static int register_fun_verbose(ddf_dev_t *parent, const char *message,
    7676    const char *name, const char *match_id, int match_score,
    77     errno_t expected_rc, ddf_fun_t **pfun)
     77    int expected_rc, ddf_fun_t **pfun)
    7878{
    7979        ddf_fun_t *fun = NULL;
    80         errno_t rc;
     80        int rc;
    8181
    8282        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    141141 * @return Error code reporting success of the operation.
    142142 */
    143 static errno_t test1_dev_add(ddf_dev_t *dev)
     143static int test1_dev_add(ddf_dev_t *dev)
    144144{
    145145        ddf_fun_t *fun_a;
    146146        test1_t *test1;
    147147        const char *dev_name;
    148         errno_t rc;
     148        int rc;
    149149
    150150        dev_name = ddf_dev_get_name(dev);
     
    196196}
    197197
    198 static errno_t fun_remove(ddf_fun_t *fun, const char *name)
    199 {
    200         errno_t rc;
     198static int fun_remove(ddf_fun_t *fun, const char *name)
     199{
     200        int rc;
    201201
    202202        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    217217}
    218218
    219 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
    220 {
    221         errno_t rc;
     219static int fun_unbind(ddf_fun_t *fun, const char *name)
     220{
     221        int rc;
    222222
    223223        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    232232}
    233233
    234 static errno_t test1_dev_remove(ddf_dev_t *dev)
     234static int test1_dev_remove(ddf_dev_t *dev)
    235235{
    236236        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    237         errno_t rc;
     237        int rc;
    238238
    239239        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    260260}
    261261
    262 static errno_t test1_dev_gone(ddf_dev_t *dev)
     262static int test1_dev_gone(ddf_dev_t *dev)
    263263{
    264264        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    265         errno_t rc;
     265        int rc;
    266266
    267267        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    288288}
    289289
    290 static errno_t test1_fun_online(ddf_fun_t *fun)
     290static int test1_fun_online(ddf_fun_t *fun)
    291291{
    292292        ddf_msg(LVL_DEBUG, "test1_fun_online()");
     
    294294}
    295295
    296 static errno_t test1_fun_offline(ddf_fun_t *fun)
     296static int test1_fun_offline(ddf_fun_t *fun)
    297297{
    298298        ddf_msg(LVL_DEBUG, "test1_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.