From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: [PATCH 0/3] i2c-tools: Allow passing i2c bus by name Date: Sat, 12 Apr 2008 13:58:41 +0200 Message-ID: <20080412135841.1983d15c@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: Linux I2C List-Id: linux-i2c@vger.kernel.org Hi all, This patch set lets the user provide the i2c bus by name, rather than number, in i2cdetect, i2cdump, i2cget and i2cset. The first patch refactors the handling of the i2cbus command line argument so that further changes only have to be done in once place. The second patch splits print_i2c_busses into a gathering part and a printing part. The third patch makes use of the gathering part to resolve the bus name to a bus number. This has been tested on both Linux 2.4 and Linux 2.6 and works well for me. I welcome comments, reviews and testing. Thanks, -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c