# $NetBSD: Makefile,v 1.2 2020/01/12 21:27:45 christos Exp $ .include HOSTPROGNAME= ${_TOOL_PREFIX}pkg_delete HOST_SRCDIR= ../external/bsd/pkg_install/sbin/pkg_delete .include "${.CURDIR}/../Makefile.inc" .include "${.CURDIR}/../../Makefile.host" iv id='cgit'>
summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/sy8106a.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-12-23No need to use I2C_F_POLL here.thorpej
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.
2017-10-02Add driver for Silergy SY8106A regulatorjmcneill