Changeset a35b458 in mainline for kernel/genarch/include


Ignore:
Timestamp:
2018-03-02T20:10:49Z (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:
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.

Location:
kernel/genarch/include/genarch
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/fb/fb.h

    r3061bc1 ra35b458  
    4646        /** Physical address of the framebuffer device. */
    4747        uintptr_t addr;
    48        
     48
    4949        /**
    5050         * Address where the first (top left) pixel is mapped,
     
    5252         */
    5353        unsigned int offset;
    54        
     54
    5555        /** Screen width in pixels. */
    5656        unsigned int x;
    57        
     57
    5858        /** Screen height in pixels. */
    5959        unsigned int y;
    60        
     60
    6161        /** Bytes per one scanline. */
    6262        unsigned int scan;
    63        
     63
    6464        /** Color model. */
    6565        visual_t visual;
  • kernel/genarch/include/genarch/kbrd/kbrd.h

    r3061bc1 ra35b458  
    4343typedef struct {
    4444        thread_t *thread;
    45        
     45
    4646        indev_t *sink;
    4747        indev_t raw;
    48        
     48
    4949        SPINLOCK_DECLARE(keylock);        /**< keylock protects keyflags and lockflags. */
    5050        volatile unsigned int keyflags;   /**< Tracking of multiple keypresses. */
  • kernel/genarch/include/genarch/ofw/ebus.h

    r3061bc1 ra35b458  
    4545        uint32_t child_base;
    4646        uint32_t parent_space;
    47        
     47
    4848        /* Group phys.mid and phys.lo together */
    4949        uint64_t parent_base;
  • kernel/genarch/include/genarch/ofw/ofw_tree.h

    r3061bc1 ra35b458  
    4949        struct ofw_tree_node *peer;
    5050        struct ofw_tree_node *child;
    51        
     51
    5252        phandle node_handle;            /**< Old OpenFirmware node handle. */
    53        
     53
    5454        char *da_name;                  /**< Disambigued name. */
    55        
     55
    5656        size_t properties;              /**< Number of properties. */
    5757        ofw_tree_property_t *property;
    58        
     58
    5959        /**
    6060         * Pointer to a structure representing respective device.
  • kernel/genarch/include/genarch/ofw/pci.h

    r3061bc1 ra35b458  
    3838        /* Needs to be masked to obtain pure space id */
    3939        uint32_t space;
    40        
     40
    4141        /* Group phys.mid and phys.lo together */
    4242        uint64_t addr;
     
    4646typedef struct {
    4747        uint32_t space;
    48        
     48
    4949        /* Group phys.mid and phys.lo together */
    5050        uint64_t child_base;
  • kernel/genarch/include/genarch/srln/srln.h

    r3061bc1 ra35b458  
    4242typedef struct {
    4343        thread_t *thread;
    44        
     44
    4545        indev_t *sink;
    4646        indev_t raw;
Note: See TracChangeset for help on using the changeset viewer.