On 02/20/2018 10:03 AM, Peter Maydell wrote: > The function qdev_init_gpio_in_named() passes the DeviceState pointer > as the opaque data pointor for the irq handler function. Usually > this is what you want, but in some cases it would be helpful to use > some other data pointer. > > Add a new function qdev_init_gpio_in_named_with_opaque() which allows > the caller to specify the data pointer they want. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > include/hw/qdev-core.h | 30 ++++++++++++++++++++++++++++-- > hw/core/qdev.c | 8 +++++--- > 2 files changed, 33 insertions(+), 5 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~