Changeset 1b20da0 in mainline for uspace/drv/block


Ignore:
Timestamp:
2018-02-28T17:52:03Z (8 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:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

Location:
uspace/drv/block
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.c

    rdf6ded8 r1b20da0  
    12551255 *
    12561256 */
    1257 static errno_t ahci_dev_add(ddf_dev_t *dev)     
     1257static errno_t ahci_dev_add(ddf_dev_t *dev)
    12581258{
    12591259        ahci_dev_t *ahci = ahci_ahci_create(dev);
  • uspace/drv/block/ata_bd/ata_bd.c

    rdf6ded8 r1b20da0  
    428428
    429429                d->blocks =
    430                      (uint32_t) idata.total_lba28_0 | 
     430                     (uint32_t) idata.total_lba28_0 |
    431431                    ((uint32_t) idata.total_lba28_1 << 16);
    432432        } else {
     
    441441                     (uint64_t) idata.total_lba48_0 |
    442442                    ((uint64_t) idata.total_lba48_1 << 16) |
    443                     ((uint64_t) idata.total_lba48_2 << 32) | 
     443                    ((uint64_t) idata.total_lba48_2 << 32) |
    444444                    ((uint64_t) idata.total_lba48_3 << 48);
    445445        }
  • uspace/drv/block/ddisk/ddisk.c

    rdf6ded8 r1b20da0  
    156156                .cmd = CMD_PREDICATE,
    157157                .srcarg = 2,
    158                 .value = 2 
     158                .value = 2
    159159        },
    160160        {
     
    162162                .cmd = CMD_PIO_WRITE_32,
    163163                .value = DDISK_CMD_IRQ_DEASSERT,
    164                 .addr = NULL 
     164                .addr = NULL
    165165        },
    166166        {
     
    244244
    245245        if (size < cnt * DDISK_BLOCK_SIZE)
    246                 return EINVAL;         
     246                return EINVAL;
    247247
    248248        for (i = 0; i < cnt; i++) {
     
    270270errno_t ddisk_bd_get_block_size(bd_srv_t *bd, size_t *rsize)
    271271{
    272         *rsize = DDISK_BLOCK_SIZE; 
     272        *rsize = DDISK_BLOCK_SIZE;
    273273        return EOK;
    274274}
     
    279279
    280280        *rnb = ddisk->blocks;
    281         return EOK;     
     281        return EOK;
    282282}
    283283
     
    304304        addr_range_t *regs = &hw_res.mem_ranges.ranges[0];
    305305        ddisk_res->base = RNGABS(*regs);
    306         ddisk_res->irq = hw_res.irqs.irqs[0]; 
     306        ddisk_res->irq = hw_res.irqs.irqs[0];
    307307
    308308        if (RNGSZ(*regs) < sizeof(ddisk_regs_t)) {
     
    550550        if (rc != EOK) {
    551551                ddf_msg(LVL_ERROR, "Unable to disable PIO.");
    552                 return rc;     
     552                return rc;
    553553        }
    554554
Note: See TracChangeset for help on using the changeset viewer.