acrn-hypervisor/hypervisor/dm
Shiqing Gao 155675350d hv: unify the function pointer assignment
Assign function pointer without the unary & operator.

Take 'register_io_emulation_handler' as an example:
void register_io_emulation_handler(struct acrn_vm *vm,
                const struct vm_io_range *range,
                io_read_fn_t io_read_fn_ptr,
                io_write_fn_t io_write_fn_ptr)

The last two parameters are function pointer.
Sometimes we use function designator directly, while sometimes
with the unary & operator, as shown below.
 - without &
   register_io_emulation_handler(vm, &range, vuart_read, vuart_write);
 - with &
   register_io_emulation_handler(vm, &pci_cfg_range,
                   &pci_cfg_io_read, &pci_cfg_io_write);

To unify the coding style, we will go with the first way.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-11-13 13:34:36 +08:00
..
hw hv: Don't check multi-function flag in PCI enumeration 2018-11-01 21:22:10 +08:00
vpci hv: unify the function pointer assignment 2018-11-13 13:34:36 +08:00
vioapic.c hv:Replace dynamic memory with static for mmio 2018-11-13 11:52:48 +08:00
vpic.c hv: unify the function pointer assignment 2018-11-13 13:34:36 +08:00
vrtc.c hv:Replace dynamic memory with static for port io 2018-11-09 13:05:04 +08:00