[Qemu-devel] [PATCH v6 5/9] qdev-clock: introduce an init array to ease the device construction

2019-09-04 Thread Damien Hedde
Introduce a function and macro helpers to setup several clocks in a device from a static array description. An element of the array describes the clock (name and direction) as well as the related callback and an optional offset to store the created object pointer in the device state structure. Th

[Qemu-devel] [PATCH v6 5/9] qdev-clock: introduce an init array to ease the device construction

2019-09-04 Thread damien . hedde
From: Damien Hedde Introduce a function and macro helpers to setup several clocks in a device from a static array description. An element of the array describes the clock (name and direction) as well as the related callback and an optional offset to store the created object pointer in the device