From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: [PATCH 0/3 v2] i2c-tools: Introduce libi2c Date: Mon, 23 Apr 2012 18:43:19 +0200 Message-ID: <20120423184319.3e09d7b4@endymion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Linux I2C List-Id: linux-i2c@vger.kernel.org For years now, project i2c-tools has been carrying a modified copy of for use by user-space applications accessing /dev/i2c-* device nodes. The modified copy includes parts of 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 in i2c-tools and 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