Skip to content

i2c-tools: Allow passing i2c bus by name

Jean Delvare linux-i2c 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Refactor the handling of the i2cbus command line argumenttools/i2cbusses.c tools/i2cbusses.h tools/i2cdetect.c +3 more+33 -250 replies
2/3Split print_i2c_busses into a gathering part and a printing parttools/i2cbusses.c+147 -250 replies
3/3Allow passing i2c bus by nametools/i2cbusses.c tools/i2cdetect.8 tools/i2cdump.8 +2 more+44 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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,

Signature · 6 lines
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c