opnsense-src/sys/modules/i2c
Ian Lepore f0a2d31ab1 Instead of building ofw_iicbus as a separate module, just compile it in to
the iicbus module for FDT-based systems.

The primary motivation for this is that host controller drivers which
declare DRIVER_MODULE(ofw_iicbus, thisdriver, etc, etc) now only need a
single MODULE_DEPEND(thisdriver, ofw_iicbus) for runtime linking to resolve
all the symbols.  With ofw_iicbus and iicbus in separate modules, drivers
would need to declare a MODULE_DEPEND() on both, because symbol lookup is
non-recursive through the dependency chain.  Requiring a driver to have
MODULE_DEPENDS() on both amounts to requiring the drivers to understand the
kobj inheritence details of how ofw_iicbus is implemented, which seems like
something they shouldn't have to know (and could even change some day).

Also, this is somewhat analogous to how the drivers get built when compiled
into the kernel.  You don't have to ask for ofw_iicbus separately, it just
gets built in along with iicbus when option FDT is in effect.
2018-02-25 18:26:50 +00:00
..
controllers sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
cyapa sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
ds13rtc Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
ds1307 Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
ds3231 Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
icee Give icee(4) a detach() method so it can be used as a module. Add a 2017-09-17 22:58:13 +00:00
if_ic sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
iic sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
iicbb sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
iicbus Instead of building ofw_iicbus as a separate module, just compile it in to 2018-02-25 18:26:50 +00:00
iicsmb sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
isl sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
isl12xx Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
jedec_dimm jedec_dimm(4): report asset info and temperatures for DDR3 and DDR4 DIMMs 2018-02-22 23:18:46 +00:00
jedec_ts sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
nxprtc Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
s35390a Add a missing header file to SRCS to fix out-of-kernel builds. 2017-09-16 16:09:05 +00:00
smb sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
smbus sys/modules: normalize .CURDIR-relative paths to SRCTOP 2017-03-04 10:10:17 +00:00
Makefile Instead of building ofw_iicbus as a separate module, just compile it in to 2018-02-25 18:26:50 +00:00
Makefile.inc