Module Name: src Committed By: thorpej Date: Mon Jan 18 15:28:21 UTC 2021
Modified Files: src/sys/dev/i2c: at24cxx.c axppmic.c ds1307.c fan53555.c i2c.c i2cvar.h m41st84.c pcagpio.c pcai2cmux.c rkpmic.c src/sys/dev/spi: spi.c src/sys/kern: subr_autoconf.c src/sys/sys: device.h Log Message: Change the device_compatible_match() function to only perform the match. Introduce a device_compatible_lookup() function to return an entry based on the same matching criteria (a'la of_search_compatible()). Update iic_compatible_match() to reflect the above change, and introduce iic_compatible_lookup(). This pattern is less awkward to use. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2c/at24cxx.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/i2c/axppmic.c cvs rdiff -u -r1.35 -r1.36 src/sys/dev/i2c/ds1307.c cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/fan53555.c cvs rdiff -u -r1.75 -r1.76 src/sys/dev/i2c/i2c.c cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/i2cvar.h cvs rdiff -u -r1.28 -r1.29 src/sys/dev/i2c/m41st84.c cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/pcagpio.c cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/pcai2cmux.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/rkpmic.c cvs rdiff -u -r1.15 -r1.16 src/sys/dev/spi/spi.c cvs rdiff -u -r1.274 -r1.275 src/sys/kern/subr_autoconf.c cvs rdiff -u -r1.160 -r1.161 src/sys/sys/device.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.