hw/sensor/tmp105: Use registerfields API
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Sep 2024 15:10:18 +0000 (17:10 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Sep 2024 18:11:13 +0000 (20:11 +0200)
commit94a4e18cec512c1aaf7b6049314bb954337a3ab1
tree34dab37661d05aaf4e90c637bf1aa7d77a7e552d
parent6efabada95981e901bb284a0ba9389b17a425d33
hw/sensor/tmp105: Use registerfields API

To improve readability, use the registerfields API.
Define the register bits with FIELD(), and use the
FIELD_EX8() and FIELD_DP8() macros. Remove the
abbreviations in comments.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Message-Id: <20240906154911.86803-3-philmd@linaro.org>
hw/sensor/tmp105.c