microbit_i2c: Fix coredump when dump-vmstate
commit3cd27b58dd2045580689bdece677fa14e12c324d
authorPeng Liang <liangpeng10@huawei.com>
Mon, 19 Oct 2020 09:34:01 +0000 (19 17:34 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Oct 2020 15:12:00 +0000 (20 16:12 +0100)
tree03825c639c083bbe621e1f8ecd86ab515cb9509d
parent4301acd7d7d455792ea873ced75c0b5d653618b1
microbit_i2c: Fix coredump when dump-vmstate

VMStateDescription.fields should be end with VMSTATE_END_OF_LIST().
However, microbit_i2c_vmstate doesn't follow it.  Let's change it.

Fixes: 9d68bf564e ("arm: Stub out NRF51 TWI magnetometer/accelerometer detection")
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201019093401.2993833-1-liangpeng10@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/microbit_i2c.c