Changeset 3987
- Timestamp:
- 06/25/05 11:51:49 (3 years ago)
- Files:
-
- i2c/trunk/doc/dev-interface (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/dev-interface
r3943 r3987 15 15 16 16 So let's say you want to access an i2c adapter from a C program. The 17 first thing to do is "#include <linux/i2c-dev.h>". 17 first thing to do is "#include <linux/i2c-dev.h>". Please note that 18 there are two files named "i2c-dev.h" out there, one is distributed 19 with the Linux kernel and is meant to be included from kernel 20 driver code, the other one is distributed with lm_sensors and is 21 meant to be included from user-space programs. You obviously want 22 the second one here. 18 23 19 24 Now, you have to decide which adapter you want to access. You should
