Ignore:
File:
1 edited

Legend:

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

    r1d6dd2a r74017ce  
    3737#include <ddf/driver.h>
    3838#include <ddf/log.h>
    39 #include <str.h>
    4039
    4140#include "test1.h"
    4241
    43 static errno_t test1_dev_add(ddf_dev_t *dev);
    44 static errno_t test1_dev_remove(ddf_dev_t *dev);
    45 static errno_t test1_dev_gone(ddf_dev_t *dev);
    46 static errno_t test1_fun_online(ddf_fun_t *fun);
    47 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);
    4847
    4948static driver_ops_t driver_ops = {
     
    7473 * @param score Device match score.
    7574 */
    76 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,
    7776    const char *name, const char *match_id, int match_score,
    78     errno_t expected_rc, ddf_fun_t **pfun)
     77    int expected_rc, ddf_fun_t **pfun)
    7978{
    8079        ddf_fun_t *fun = NULL;
    81         errno_t rc;
     80        int rc;
    8281
    8382        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    142141 * @return Error code reporting success of the operation.
    143142 */
    144 static errno_t test1_dev_add(ddf_dev_t *dev)
     143static int test1_dev_add(ddf_dev_t *dev)
    145144{
    146145        ddf_fun_t *fun_a;
    147146        test1_t *test1;
    148147        const char *dev_name;
    149         errno_t rc;
     148        int rc;
    150149
    151150        dev_name = ddf_dev_get_name(dev);
     
    197196}
    198197
    199 static errno_t fun_remove(ddf_fun_t *fun, const char *name)
    200 {
    201         errno_t rc;
     198static int fun_remove(ddf_fun_t *fun, const char *name)
     199{
     200        int rc;
    202201
    203202        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    218217}
    219218
    220 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
    221 {
    222         errno_t rc;
     219static int fun_unbind(ddf_fun_t *fun, const char *name)
     220{
     221        int rc;
    223222
    224223        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    233232}
    234233
    235 static errno_t test1_dev_remove(ddf_dev_t *dev)
     234static int test1_dev_remove(ddf_dev_t *dev)
    236235{
    237236        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    238         errno_t rc;
     237        int rc;
    239238
    240239        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    261260}
    262261
    263 static errno_t test1_dev_gone(ddf_dev_t *dev)
     262static int test1_dev_gone(ddf_dev_t *dev)
    264263{
    265264        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    266         errno_t rc;
     265        int rc;
    267266
    268267        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    289288}
    290289
    291 static errno_t test1_fun_online(ddf_fun_t *fun)
     290static int test1_fun_online(ddf_fun_t *fun)
    292291{
    293292        ddf_msg(LVL_DEBUG, "test1_fun_online()");
     
    295294}
    296295
    297 static errno_t test1_fun_offline(ddf_fun_t *fun)
     296static int test1_fun_offline(ddf_fun_t *fun)
    298297{
    299298        ddf_msg(LVL_DEBUG, "test1_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.