From: Luis C. <lfc...@lf...> - 2005-05-02 19:45:22
|
paul kamphuis wrote: > Hi Michael, > > I haven't tested your test program, but I think it is similar to the > test program I started with. > I know that you are at least missing the following include. > > #include <linux/compiler.h> > > This include is required for i2c.h to compile correctly. It should > however be noted that this compiler.h creates different defines based > on the fact if it compiling for kernel space or user space. We need to > compile for user space. My guess is, that on your system you are > somehow by default compiling for kernel space. The problem is I don't > know to switch between kernel and user space compilation. > > Can you send your compile errors? > > regards, > > Paul > Maybe we could provide our own i2c.h helper files, as we do not really need that much info from the I2C subsystem. The main problem would be wether we can accurately detect the presence of the real files... Paul, i'm waiting for your comments on this. Luis |