aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/imx7_src.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-08 13:15:44 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-25 12:48:12 +0200
commita6ab7a98c9a8106cb8ef86cbc88a27fe69963423 (patch)
treec0ce9fe28344489fe3ba9c912b2dbb1d91009cf1 /hw/misc/imx7_src.c
parent63073574e8d5551dc31a30b59830b886e9f9dbfe (diff)
hw/misc/applesmc: Simplify DeviceReset handler
Have applesmc_find_key() return a const pointer. Since the returned buffers are not modified in applesmc_io_data_write(), it is pointless to delete and re-add the keys in the DeviceReset handler. Add them once in DeviceRealize, and discard them in the DeviceUnrealize handler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20240410180819.92332-1-philmd@linaro.org>
Diffstat (limited to 'hw/misc/imx7_src.c')
0 files changed, 0 insertions, 0 deletions