/usr.sbin/ntp/libntp/

plication/atom+xml'/>
summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/adadc.c
AgeCommit message (Collapse)Author
2021-01-27Use DEVICE_COMPAT_EOL.thorpej
2021-01-25Since we're using designated initialisers for compat data, we shouldthorpej
use a completely empty initializer for the sentinel.
2021-01-17Use designated initializers and a consistent termination style inthorpej
compat_data[].
2019-06-15explicitly initialize sensor->statemacallan
2018-06-26In my quest to make device_compatible_entry (and associated goo)thorpej
super-general, it turns out I also made it a little to cumbersome to use (if my tired fingers are any indication). So, this is a course-correction -- one string per entry (like of_compat_data, which it will soon replace), and remove the over-verbose macros.
2018-06-18- Rename iic_compat_match() to iic_compatible_match() and change itthorpej
to use the new device_compatible_match() routine. A pointer to the matching device_compatible_entry is returned if a match is found. - Adjust iic_use_direct_match() accordingly. - i2c drivers now provide device_compatible_entry tables when performing direct-config matching. - In the dsrtc driver, take advantage of this new capability to greatly simplify model selection. (I'm coming for you next, of_compat_data...)
2018-06-16More cleanup to i2c autoconfiguration:thorpej
- 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-03-16get EEPROM data from uni_n instead of poking around in OFmacallan
2018-03-09remove some unused code, add comments for credits & explanationsmacallan
2018-03-09yet another temperature sensor / ADCmacallan
this one supports Analog Devices AD7417, found in some G5 macs depends on OpenFirmware for calibration data