[i2c] Userspace Headers for recent kernels

don don_reid at comcast.net
Tue Sep 12 22:56:01 CEST 2006


I am trying to find or create some header files (i2c-dev.h and i2c.h
if needed).  That will work for user-space programs with recent kernels
like 2.6.17.13.

I have read the various messages in this lists archives and elsewhere
which say:

	- The kernel headers are not for users (no kidding they produce
	  copious errors).

	- The Lm-sensors headers should be used.

However all the versions of lm-sensors I have found, including the current
SVN, don't seem to match the kernel code.  For example the function
i2c_smbus_write_byte() in the kernel wants a struct i2c_client while the
lm-sensors file declares it with an int (a file number).

Am I missing something?  If not does anyone have such headers?

Don Reid



More information about the i2c mailing list