hw/sensor/tmp105: OS (one-shot) bit in config register always returns 0
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Sep 2024 15:18:42 +0000 (17:18 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Sep 2024 18:11:13 +0000 (20:11 +0200)
commitbf4e487057fe4998ec494c00cc97242c0f37873e
tree2e400e32cd88e495ccd41e387a9fb116ee362815
parent0339fa791046288311501e06361f4d3f7e7270df
hw/sensor/tmp105: OS (one-shot) bit in config register always returns 0

Per datasheet, "ONE-SHOT (OS)", the OS bit always returns 0 when reading
the configuration register.

Clear the ONE_SHOT bit in the WRITE path. Now than the READ path is
simpler, we can also simplify tmp105_alarm_update().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20240906154911.86803-5-philmd@linaro.org>
hw/sensor/tmp105.c