]> git.ipfire.org Git - thirdparty/qemu.git/commit
allwinner-i2c, adm1272: Use device_cold_reset() for software-triggered reset
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Apr 2024 16:08:05 +0000 (17:08 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Apr 2024 09:21:06 +0000 (10:21 +0100)
commitef6ab2922fc94956c0b28c55ec2abe61f71446a9
tree4847b39c3acdd423175126b551852d94d41ce0d1
parent1e0f2b38ac104ec3606750cce847cc9d8e4f66ac
allwinner-i2c, adm1272: Use device_cold_reset() for software-triggered reset

Rather than directly calling the device's implementation of its 'hold'
reset phase, call device_cold_reset(). This means we don't have to
adjust this callsite when we add another argument to the function
signature for the hold and exit reset methods.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Luc Michel <luc.michel@amd.com>
Message-id: 20240412160809.1260625-3-peter.maydell@linaro.org
hw/i2c/allwinner-i2c.c
hw/sensor/adm1272.c