i2c-tools: Allow passing i2c bus by name
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Refactor the handling of the i2cbus command line argumenttools/ tools/ tools/ +3 more | +33 | 0 replies | |
| 2/3 | Split print_i2c_busses into a gathering part and a printing parttools/ | +147 | 0 replies | |
| 3/3 | Allow passing i2c bus by nametools/ tools/ tools/ +2 more | +44 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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