diff options
author | Philippe Mathieu-Daudé | 2019-04-12 18:54:06 +0200 |
---|---|---|
committer | Peter Maydell | 2019-04-29 18:57:21 +0200 |
commit | 5f299c5592267f132ace1a7b883f96f2512c9743 (patch) | |
tree | 85e27834dbb38b8321fc9572e814e90320f2d555 | |
parent | hw/arm/aspeed: Use TYPE_TMP105/TYPE_PCA9552 instead of hardcoded string (diff) | |
download | qemu-5f299c5592267f132ace1a7b883f96f2512c9743.tar.gz qemu-5f299c5592267f132ace1a7b883f96f2512c9743.tar.xz qemu-5f299c5592267f132ace1a7b883f96f2512c9743.zip |
hw/arm/nseries: Use TYPE_TMP105 instead of hardcoded string
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190412165416.7977-3-philmd@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/nseries.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c index 906b7ca22d..2b710c3d49 100644 --- a/hw/arm/nseries.c +++ b/hw/arm/nseries.c @@ -31,6 +31,7 @@ #include "hw/boards.h" #include "hw/i2c/i2c.h" #include "hw/devices.h" +#include "hw/misc/tmp105.h" #include "hw/block/flash.h" #include "hw/hw.h" #include "hw/bt.h" @@ -218,7 +219,7 @@ static void n8x0_i2c_setup(struct n800_s *s) qemu_register_powerdown_notifier(&n8x0_system_powerdown_notifier); /* Attach a TMP105 PM chip (A0 wired to ground) */ - dev = i2c_create_slave(i2c, "tmp105", N8X0_TMP105_ADDR); + dev = i2c_create_slave(i2c, TYPE_TMP105, N8X0_TMP105_ADDR); qdev_connect_gpio_out(dev, 0, tmp_irq); } |