]> git.proxmox.com Git - mirror_qemu.git/commit
hw/gpio/max7310: Simplify max7310_realize()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Feb 2023 11:51:07 +0000 (12:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 27 Feb 2023 13:27:04 +0000 (13:27 +0000)
commitcb4c33f014925d860387ecef4d74a7f03cab6626
tree12973f790e51d9a9f8d321a0a731d5d2f63e2404
parent9880e9bc63efcaf3f5230c2f93fb03068df2e465
hw/gpio/max7310: Simplify max7310_realize()

Since &I2C_SLAVE(dev)->qdev == dev, no need to go back and
forth with QOM type casting. Directly use 'dev'.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230220115114.25237-2-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/gpio/max7310.c