Previously, the TMP1075 driver only used the integer part (val1) of the sensor_value when setting TLOW and THIGH thresholds. This limited the precision of temperature threshold configuration and could be insufficient in applications requiring fine-grained control. This patch adds proper handling for the fractional part (val2) by encoding it into bits [7:4] of the 12-bit temperature register according to the TMP1075 datasheet. The decoding logic in get_threshold_attribute() is also updated to recover the fractional value accurately. Signed-off-by: Hank Wang <wanghanchi2000@gmail.com> |
||
|---|---|---|
| .. | ||
| bq274xx | ||
| fdc2x1x | ||
| ina23x | ||
| ina219 | ||
| ina226 | ||
| ina3221 | ||
| lm95234 | ||
| opt3001 | ||
| ti_hdc | ||
| ti_hdc20xx | ||
| tmag5170 | ||
| tmag5273 | ||
| tmp11x | ||
| tmp007 | ||
| tmp108 | ||
| tmp112 | ||
| tmp114 | ||
| tmp435 | ||
| tmp1075 | ||
| CMakeLists.txt | ||
| Kconfig | ||