Changeset a35b458 in mainline for uspace/drv/block/ahci/ahci_sata.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/drv/block/ahci/ahci_sata.h

    r3061bc1 ra35b458  
    146146        uint16_t _vs8;
    147147        uint16_t _vs9;
    148        
     148
    149149        uint16_t serial_number[10];
    150150        uint16_t _vs20;
     
    153153        uint16_t firmware_rev[4];
    154154        uint16_t model_name[20];
    155        
     155
    156156        uint16_t max_rw_multiple;
    157157        uint16_t reserved48;
     
    161161        uint16_t pio_timing;
    162162        uint16_t dma_timing;
    163        
     163
    164164        uint16_t validity;
    165165        uint16_t cur_cyl;
     
    178178        uint16_t min_raw_pio_cycle;
    179179        uint16_t min_iordy_pio_cycle;
    180        
     180
    181181        uint16_t reserved69;
    182182        uint16_t reserved70;
     
    185185        uint16_t reserved73;
    186186        uint16_t reserved74;
    187        
     187
    188188        uint16_t queue_depth;
    189189        /** SATA capatibilities - different meaning for packet device. */
     
    201201        uint16_t csf_default;
    202202        uint16_t udma;
    203        
     203
    204204        uint16_t reserved89[1 + 99 - 89];
    205        
     205
    206206        /* Total number of blocks in LBA-48 addressing. */
    207207        uint16_t total_lba48_0;
     
    209209        uint16_t total_lba48_2;
    210210        uint16_t total_lba48_3;
    211        
     211
    212212        uint16_t reserved104[1 + 105 - 104];
    213213        uint16_t physical_logic_sector_size;
     
    248248        /** Supports recepits of host-initiated interface power management. */
    249249        sata_np_cap_host_pmngmnt = 0x0200,
    250        
     250
    251251        /** Supports NCQ. */
    252252        sata_np_cap_ncq = 0x0100,
    253        
     253
    254254        /** Supports SATA 3. */
    255255        sata_np_cap_sata_3 = 0x0008,
     
    272272        /** Supports recepits of host-initiated interface power management. */
    273273        sata_pt_cap_host_pmngmnt = 0x0200,
    274        
     274
    275275        /** Supports SATA 3. */
    276276        sata_pt_cap_sat_3 = 0x0008,
Note: See TracChangeset for help on using the changeset viewer.