[i2c] [PATCH 0/3] i2c-tools: Allow passing i2c bus by name

Jean Delvare khali at linux-fr.org
Sat Apr 12 13:58:41 CEST 2008


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



More information about the i2c mailing list