mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
i2c-dev.h is no longer there.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4498 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
28ba499f12
commit
0d39567685
2 files changed
+5
-5
No files matched your search
@@ -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 <linux/i2c-dev.h>
|
||||
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 <linux/i2c-dev.h>,
|
||||
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 <linux/i2c-dev.h> 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.
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user