Changeset 3987

Show
Ignore:
Timestamp:
06/25/05 11:51:49 (3 years ago)
Author:
khali
Message:

Clarify which i2c-dev.h file has to be included. Suggested by
Nils Roeder.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/doc/dev-interface

    r3943 r3987  
    1515 
    1616So 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>".  
     17first thing to do is "#include <linux/i2c-dev.h>". Please note that 
     18there are two files named "i2c-dev.h" out there, one is distributed 
     19with the Linux kernel and is meant to be included from kernel 
     20driver code, the other one is distributed with lm_sensors and is 
     21meant to be included from user-space programs. You obviously want 
     22the second one here. 
    1823 
    1924Now, you have to decide which adapter you want to access. You should