qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH-for-10.0 11/12] hw/sensor/temp: Categorize and add descriptio


From: Thomas Huth
Subject: Re: [PATCH-for-10.0 11/12] hw/sensor/temp: Categorize and add description
Date: Wed, 26 Mar 2025 08:11:21 +0100
User-agent: Mozilla Thunderbird

On 25/03/2025 23.43, Philippe Mathieu-Daudé wrote:
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/sensor/dps310.c  | 2 ++
  hw/sensor/emc141x.c | 6 ++++++
  hw/sensor/tmp105.c  | 2 ++
  hw/sensor/tmp421.c  | 4 ++++
  4 files changed, 14 insertions(+)

diff --git a/hw/sensor/dps310.c b/hw/sensor/dps310.c
index 6966a53248b..e1e6df6b60a 100644
--- a/hw/sensor/dps310.c
+++ b/hw/sensor/dps310.c
@@ -207,6 +207,8 @@ static void dps310_class_init(ObjectClass *klass, void 
*data)
      k->send = dps310_tx;
      device_class_set_legacy_reset(dc, dps310_reset);
      dc->vmsd = &vmstate_dps310;
+    dc->desc = "Infineon DPS310 temperature and humidity sensor";
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);

Not necessary - I2C device again.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]