Changeset a35b458 in mainline for uspace/lib/drv/include/ops/nic.h


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/include/ops/nic.h

    r3061bc1 ra35b458  
    4949        errno_t (*set_state)(ddf_fun_t *, nic_device_state_t);
    5050        errno_t (*get_address)(ddf_fun_t *, nic_address_t *);
    51        
     51
    5252        /** Optional methods */
    5353        errno_t (*set_address)(ddf_fun_t *, const nic_address_t *);
     
    5555        errno_t (*get_device_info)(ddf_fun_t *, nic_device_info_t *);
    5656        errno_t (*get_cable_state)(ddf_fun_t *, nic_cable_state_t *);
    57        
     57
    5858        errno_t (*get_operation_mode)(ddf_fun_t *, int *, nic_channel_mode_t *,
    5959            nic_role_t *);
     
    6868            uint16_t *);
    6969        errno_t (*set_pause)(ddf_fun_t *, int, int, uint16_t);
    70        
     70
    7171        errno_t (*unicast_get_mode)(ddf_fun_t *, nic_unicast_mode_t *, size_t,
    7272            nic_address_t *, size_t *);
     
    8484            size_t *);
    8585        errno_t (*blocked_sources_set)(ddf_fun_t *, const nic_address_t *, size_t);
    86        
     86
    8787        errno_t (*vlan_get_mask)(ddf_fun_t *, nic_vlan_mask_t *);
    8888        errno_t (*vlan_set_mask)(ddf_fun_t *, const nic_vlan_mask_t *);
    8989        errno_t (*vlan_set_tag)(ddf_fun_t *, uint16_t, bool, bool);
    90        
     90
    9191        errno_t (*wol_virtue_add)(ddf_fun_t *, nic_wv_type_t, const void *,
    9292            size_t, nic_wv_id_t *);
     
    9999        errno_t (*wol_load_info)(ddf_fun_t *, nic_wv_type_t *, size_t,
    100100            uint8_t *, size_t *);
    101        
     101
    102102        errno_t (*offload_probe)(ddf_fun_t *, uint32_t *, uint32_t *);
    103103        errno_t (*offload_set)(ddf_fun_t *, uint32_t, uint32_t);
    104        
     104
    105105        errno_t (*poll_get_mode)(ddf_fun_t *, nic_poll_mode_t *,
    106106            struct timeval *);
Note: See TracChangeset for help on using the changeset viewer.