summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/pcf8583.c
AgeCommit message (Collapse)Author
2020-01-02No need to use I2C_F_POLL here.thorpej
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-28Kill some more extern struct cfdriver declarations.riastradh
Down with externs in .c!
2014-11-20use the inline bcdtobin and bintobcd directly instead through a macro.christos
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2011-04-02Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks.mbalmer
2009-12-12Remove `volatile' qualifier from argument types oftsutsui
struct timeval passed to todr_gettime(9) and todr_settime(9). We no longer have an ancient and volatile struct timeval `time' global since we have switched to MI timercounter(9) on all port. XXX1: some of these RTC drivers still assume 32bit time_t XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms() XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2008-06-08Replace device_lookup() with device_lookup_private() to get softctsutsui
after device_t/softc split. PR kern/38885 from Jonathan A. Kollasch.
2008-05-04device_t/softc split and other related cosmetic changes.xtraeme
2008-04-06use aprint_*_dev and device_xnamecegger
2007-12-11use __KERNEL_RCSID()lukem
2007-01-13Complete initializers so those files compile.cube
2006-09-04Remove unused todr_setcal/todr_getcal and all the assorted stubgdamore
implementations.
2006-08-23gettime and settime functions are meant to return errno values. Makebjh21
the pcf8583 ones do so.
2006-03-29Use device_private().thorpej
2005-12-11merge ktrace-lwp.christos
2005-06-04Fix the various todr_gettime() and todr_settime() fallouts fromhe
-Wcast-qual differently, by instead changing the signatore of those "functions" to take a "volatile struct timeval*" instead of a "struct timeval*". Many places, these functions are called with &time, and time is declared as volatile in <sys/kernel.h>. This way we can get rid of all the ugly casts which now also triggered warnings, and caused more code to be added to work around the problem. Reviewed by thorpej.
2003-09-30New generic I2C framework. Supports bit-bang and "intelligent" I2Cthorpej
interface controllers (of varying intelligence levels). Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford, with some modification by me.