On Mon, 29 Jun 2020 at 10:09, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > > On 6/28/20 4:24 PM, Peter Maydell wrote: > > Use the new max111x qdev properties to set the initial input > > values rather than calling max111x_set_input(); this means that > > on system reset the inputs will correctly return to their initial > > values. > > > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > > ---
> Actually for arrays it would be nice to use: > > DEFINE_PROP_ARRAY("input", MAX111xState, nr_inputs, reset_input, > qdev_prop_uint8, uint8_t), DEFINE_PROP_ARRAY defines a variable length property array; what we want for max111x is fixed-length. thanks -- PMM