Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/private/driver.h

    r3061bc1 ra35b458  
    4949         */
    5050        devman_handle_t handle;
    51        
     51
    5252        /** Reference count */
    5353        atomic_t refcnt;
    54        
     54
    5555        /** Session with the parent device driver */
    5656        async_sess_t *parent_sess;
    57        
     57
    5858        /** Device name */
    5959        char *name;
    60        
     60
    6161        /** Driver-specific data associated with this device */
    6262        void *driver_data;
    63        
     63
    6464        /** Link in the list of devices handled by the driver */
    6565        link_t link;
     
    7070        /** True if bound to the device manager */
    7171        bool bound;
    72        
     72
    7373        /** Function indentifier (asigned by device manager) */
    7474        devman_handle_t handle;
    75        
     75
    7676        /** Reference count */
    7777        atomic_t refcnt;
    78        
     78
    7979        /** Device which this function belogs to */
    8080        struct ddf_dev *dev;
    81        
     81
    8282        /** Function type */
    8383        fun_type_t ftype;
    84        
     84
    8585        /** Function name */
    8686        char *name;
    87        
     87
    8888        /** List of device ids for driver matching */
    8989        match_id_list_t match_ids;
    90        
     90
    9191        /** Driver-specific data associated with this function */
    9292        void *driver_data;
    93        
     93
    9494        /** Implementation of operations provided by this function */
    9595        const ddf_dev_ops_t *ops;
    96        
     96
    9797        /** Connection handler or @c NULL to use the DDF default handler. */
    9898        async_port_handler_t conn_handler;
    99        
     99
    100100        /** Link in the list of functions handled by the driver */
    101101        link_t link;
Note: See TracChangeset for help on using the changeset viewer.