[PATCH 0/2] i2c-tools: Clean up <linux/i2c-dev.h>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

For years now, project i2c-tools has been carrying a modified copy of
<linux/i2c-dev.h> for use by user-space applications
accessing /dev/i2c-* device nodes. The modified copy includes parts of
<linux/i2c.h> as well as i2c_smbus_*() inline functions mimicking their
kernel counterparts.

Why it was done that way, I'm not sure. Maybe to make things easier for
application authors, or maybe just because nobody ever cared to clean
it all up. But what I'm sure of is that the current situation is ugly
and should be cleaned up. Kernel interfaces should be described by
kernel header files, not random user-space tool projects.

So I have a plan to get rid of <linux/i2c-dev.h> in i2c-tools. This is
the first step of a more ambitious plan to move the inline
i2c_smbus_*() functions to a proper library - they are too large to be
inline functions and recent versions of gcc complain about that.

Jean Delvare
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux