Commit Graph

6 Commits

Author SHA1 Message Date
thorpej aa41e9922c More cleanup to i2c autoconfiguration:
- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.
2018-06-16 21:22:13 +00:00
rkujawa 94950b3125 Fix name of sysctl setup function. 2013-10-28 11:24:08 +00:00
rkujawa 2c5d1a916c Add sysctl knobs to set temperature limit and hysteresis. Reaching the limit
causes alert line of the chip to be asserted. These limits could be tied to
critical limit set in envsys, but it's more versatile to keep it as separate
value.
2013-10-15 13:42:52 +00:00
rkujawa f89444f722 Simplify sysctl handling. 2013-10-15 10:27:55 +00:00
rkujawa 3915797645 Clean up register read and write functions, add functions for 8-bit read and
write (needed to access config register). Add sysctl knob to set resolution
from user space.
2013-10-15 10:18:49 +00:00
rkujawa ca20b36e59 Add driver for Microchip MCP9800/1/2/3 temperature sensors. 2013-05-06 22:04:12 +00:00