aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus/lm75.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the deciKelvin to Celsius conversion in kernel.Luiz Otavio O Souza2016-05-221-1/+1
| | | | | | | | | | | | | | After r285994, sysctl(8) was fixed to use 273.15 instead of 273.20 as 0C reference and as result, the temperature read in sysctl(8) now exibits a +0.1C difference. This commit fix the kernel references to match the reference value used in sysctl(8) after r285994. Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=300421
* Fix off-by-one bugs.Luiz Otavio O Souza2015-03-101-4/+3
| | | | | | | Spotted by: rpaulo (on another review) Notes: svn path=/head/; revision=279852
* Replace hardcoded sizes by sizeof() and nitems().Luiz Otavio O Souza2015-02-171-14/+13
| | | | | | | Set all the sysctls as CTLFLAG_MPSAFE. Notes: svn path=/head/; revision=278918
* Fix the display of negative temperatures.Luiz Otavio O Souza2015-02-171-7/+14
| | | | | | | | Fix the setting of TOS (overtemperature shutdown) and THYST (hysteresis temperature). Notes: svn path=/head/; revision=278917
* Add the lm75 i2c digital temperature sensor driver.Luiz Otavio O Souza2014-05-101-0/+574
This driver supports the low and high precision models (9 and 11 bits) and it will auto-detect the both variants. The driver expose the temperature registers (actual temperature, shutdown and hysteresys temperature) and also the configuration register. It was tested on FDT systems: RPi, BBB and on non-FDT systems: AR71xx, with both, hardware i2c controllers (when available) and gpioiic(4). This provides a simple and cheap way for verifying the i2c bus on embedded systems. Notes: svn path=/head/; revision=265813