diff --git a/doc/developers/applications b/doc/developers/applications index 60c89564..d928dd53 100644 --- a/doc/developers/applications +++ b/doc/developers/applications @@ -10,7 +10,7 @@ From lowest-level to the highest-level, the access methods are: 1) Character device access to the i2c bus driver via /dev/i2c-x - 2) I2C bus access functions as defined in kernel/include/i2c-dev.h + 2) I2C bus access functions as defined in 3) sysfs access to the chip device driver 4) libsensors library 5) sensors program @@ -39,14 +39,14 @@ Details: 2. Direct /dev access using inline functions -------------------------------------------- - I2C bus access inline functions as defined in kernel/include/i2c-dev.h, + I2C bus access inline functions as defined in , and in doc/dev-interface in the i2c package or Documentation/i2c/dev-interface in the linux kernel sources. Note that these used to be defined in in the kernel source tree. However, userspace applications are not supposed to include kernel headers, so the inline functions were removed from - the kernel file in recent kernels. Use the header file in this package - instead. + the kernel file in recent kernels. Use the header file from the + i2c-tools package instead. This method does not use a chip device driver at all. However it does require the i2c-dev module. diff --git a/kernel/include/Module.mk b/kernel/include/Module.mk index 2f62f1ff..0b41678f 100644 --- a/kernel/include/Module.mk +++ b/kernel/include/Module.mk @@ -21,7 +21,7 @@ MODULE_DIR := kernel/include KERNELINCLUDEDIR := $(MODULE_DIR) -KERNELINCLUDEFILES := $(MODULE_DIR)/i2c-dev.h $(MODULE_DIR)/sensors.h +KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h REMOVEKERNELINC := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SYSINCLUDEDIR)/%,$(KERNELINCLUDEFILES))