]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
xen/arm: io: Shorten the name of the fields and clean up
authorJulien Grall <julien.grall@citrix.com>
Tue, 29 Sep 2015 14:44:41 +0000 (15:44 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 1 Oct 2015 12:48:51 +0000 (13:48 +0100)
commit3ba1e8147e511eb7ee52ab5618b9dc0eb8e90eca
treedb345091ec2c387bc37fd5c4cf05b54d2f8a1cf7
parent9b9d51e98edb8c5c731e2d06dfad3633053d88a4
xen/arm: io: Shorten the name of the fields and clean up

The field names in the IO emulation are really long and use repeatedly
the term handler which make some line cumbersome to read:

mmio_handler->mmio_handler_ops->write_handler

Also take the opportunity to do some clean up:
    - Avoid "handler" vs "handle" in register_mmio_handler
    - Use a local variable to initialize handler in
    register_mmio_handler
    - Add a comment explaining the dsb(ish) in register_mmio_handler
    - Rename the structure io_handler into vmmio because the io_handler
    is in fine handling multiple handlers and the name a the fields was
    io_handlers. Also rename the field io_handlers to vmmio
    - Rename the field mmio_handler_ops to ops because we are in the
    structure mmio_handler to not need to repeat it
    - Rename the field mmio_handlers to handlers because we are in the
    vmmio structure
    - Make it clear that register_mmio_ops is taking an ops and not an
    handle
    - Clean up local variable to help to understand the code

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/io.c
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic-v3.c
xen/arch/arm/vuart.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/mmio.h