Changeset 1433ecda in mainline for uspace/drv/char


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/char
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/i8042.h

    r47b2d7e3 r1433ecda  
    5656        uint8_t pad[3];
    5757        ioport8_t status;
    58 } __attribute__ ((packed)) i8042_regs_t;
     58} __attribute__((packed)) i8042_regs_t;
    5959
    6060/** i8042 Port. */
  • uspace/drv/char/msim-con/main.c

    r47b2d7e3 r1433ecda  
    103103        errno_t rc;
    104104
    105         ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev);
     105        ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev);
    106106
    107107        msim_con = ddf_dev_data_alloc(dev, sizeof(msim_con_t));
     
    124124static errno_t msim_con_dev_remove(ddf_dev_t *dev)
    125125{
    126         msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);
     126        msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);
    127127
    128         ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev);
     128        ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev);
    129129
    130         return msim_con_remove(msim_con);
     130        return msim_con_remove(msim_con);
    131131}
    132132
    133133static errno_t msim_con_dev_gone(ddf_dev_t *dev)
    134134{
    135         msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);
     135        msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);
    136136
    137         ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev);
     137        ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev);
    138138
    139         return msim_con_gone(msim_con);
     139        return msim_con_gone(msim_con);
    140140}
    141141
    142142static errno_t msim_con_fun_online(ddf_fun_t *fun)
    143143{
    144         ddf_msg(LVL_DEBUG, "msim_con_fun_online()");
    145         return ddf_fun_online(fun);
     144        ddf_msg(LVL_DEBUG, "msim_con_fun_online()");
     145        return ddf_fun_online(fun);
    146146}
    147147
    148148static errno_t msim_con_fun_offline(ddf_fun_t *fun)
    149149{
    150         ddf_msg(LVL_DEBUG, "msim_con_fun_offline()");
    151         return ddf_fun_offline(fun);
     150        ddf_msg(LVL_DEBUG, "msim_con_fun_offline()");
     151        return ddf_fun_offline(fun);
    152152}
    153153
  • uspace/drv/char/ski-con/main.c

    r47b2d7e3 r1433ecda  
    6565        ski_con_t *ski_con;
    6666
    67         ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev);
     67        ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev);
    6868        ski_con = ddf_dev_data_alloc(dev, sizeof(ski_con_t));
    6969        if (ski_con == NULL) {
     
    7979static errno_t ski_con_dev_remove(ddf_dev_t *dev)
    8080{
    81         ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);
     81        ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);
    8282
    83         ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev);
     83        ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev);
    8484
    85         return ski_con_remove(ski_con);
     85        return ski_con_remove(ski_con);
    8686}
    8787
    8888static errno_t ski_con_dev_gone(ddf_dev_t *dev)
    8989{
    90         ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);
     90        ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);
    9191
    92         ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev);
     92        ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev);
    9393
    94         return ski_con_gone(ski_con);
     94        return ski_con_gone(ski_con);
    9595}
    9696
    9797static errno_t ski_con_fun_online(ddf_fun_t *fun)
    9898{
    99         ddf_msg(LVL_DEBUG, "ski_con_fun_online()");
    100         return ddf_fun_online(fun);
     99        ddf_msg(LVL_DEBUG, "ski_con_fun_online()");
     100        return ddf_fun_online(fun);
    101101}
    102102
    103103static errno_t ski_con_fun_offline(ddf_fun_t *fun)
    104104{
    105         ddf_msg(LVL_DEBUG, "ski_con_fun_offline()");
    106         return ddf_fun_offline(fun);
     105        ddf_msg(LVL_DEBUG, "ski_con_fun_offline()");
     106        return ddf_fun_offline(fun);
    107107}
    108108
  • uspace/drv/char/ski-con/ski-con.c

    r47b2d7e3 r1433ecda  
    169169#ifdef UARCH_ia64
    170170        asm volatile (
    171                 "mov r15 = %1\n"
    172                 "break 0x80000;;\n"     /* modifies r8 */
    173                 "mov %0 = r8;;\n"
    174 
    175                 : "=r" (ch)
    176                 : "i" (SKI_GETCHAR)
    177                 : "r15", "r8"
     171            "mov r15 = %1\n"
     172            "break 0x80000;;\n" /* modifies r8 */
     173            "mov %0 = r8;;\n"
     174
     175            : "=r" (ch)
     176            : "i" (SKI_GETCHAR)
     177            : "r15", "r8"
    178178        );
    179179#else
     
    199199#ifdef UARCH_ia64
    200200        asm volatile (
    201                 "mov r15 = %0\n"
    202                 "mov r32 = %1\n"   /* r32 is in0 */
    203                 "break 0x80000\n"  /* modifies r8 */
    204                 :
    205                 : "i" (SKI_PUTCHAR), "r" (ch)
    206                 : "r15", "in0", "r8"
     201            "mov r15 = %0\n"
     202            "mov r32 = %1\n"   /* r32 is in0 */
     203            "break 0x80000\n"  /* modifies r8 */
     204            :
     205            : "i" (SKI_PUTCHAR), "r" (ch)
     206            : "r15", "in0", "r8"
    207207        );
    208208#else
  • uspace/drv/char/sun4v-con/main.c

    r47b2d7e3 r1433ecda  
    9494        errno_t rc;
    9595
    96         ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev);
     96        ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev);
    9797        sun4v_con = ddf_dev_data_alloc(dev, sizeof(sun4v_con_t));
    9898        if (sun4v_con == NULL) {
     
    114114static errno_t sun4v_con_dev_remove(ddf_dev_t *dev)
    115115{
    116         sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
     116        sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
    117117
    118         ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev);
     118        ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev);
    119119
    120         return sun4v_con_remove(sun4v_con);
     120        return sun4v_con_remove(sun4v_con);
    121121}
    122122
    123123static errno_t sun4v_con_dev_gone(ddf_dev_t *dev)
    124124{
    125         sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
     125        sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
    126126
    127         ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev);
     127        ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev);
    128128
    129         return sun4v_con_gone(sun4v_con);
     129        return sun4v_con_gone(sun4v_con);
    130130}
    131131
    132132static errno_t sun4v_con_fun_online(ddf_fun_t *fun)
    133133{
    134         ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()");
    135         return ddf_fun_online(fun);
     134        ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()");
     135        return ddf_fun_online(fun);
    136136}
    137137
    138138static errno_t sun4v_con_fun_offline(ddf_fun_t *fun)
    139139{
    140         ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()");
    141         return ddf_fun_offline(fun);
     140        ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()");
     141        return ddf_fun_offline(fun);
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.