linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] i2c-tools: Clean up <linux/i2c-dev.h>
@ 2012-03-15 15:53 Jean Delvare
       [not found] ` <20120315165344.5f8e060f-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2012-03-15 15:53 UTC (permalink / raw)
  To: Linux I2C

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-21  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 15:53 [PATCH 0/2] i2c-tools: Clean up <linux/i2c-dev.h> Jean Delvare
     [not found] ` <20120315165344.5f8e060f-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-03-15 15:59   ` [PATCH 1/2] " Jean Delvare
2012-03-15 16:00   ` [PATCH 2/2] Split i2c-dev.h into parts Jean Delvare
2012-03-21  9:11   ` [PATCH 0/2] i2c-tools: Clean up <linux/i2c-dev.h> Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).