Jean Delvare
aa78242d6c
More user-friendly error messages for wrong I2C bus parameter.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5205 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
bdfc87d724
Move the chip address parsing to a common function for consistency.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5204 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b331c042c8
Move print_i2c_busses from i2cbusses.c to i2cdetect.c, as it is
only used there.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5202 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b68190b426
Don't print the list of i2c buses as part of the help.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5200 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
e34ebe15e7
Limit the stack usage in gather_i2c_busses:
* Reuse variables where possible.
* Don't assign things we don't need in sscanf.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5196 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
31e9db10d0
Make it possible to pass the i2c bus by name instead of by number. As
there is no guarantee that i2c bus numbering will stay the same over
time (for example if hardware is added of removed, or simply due to
loading the drivers in a different order), passing the i2c bus by name
is more robust.
The i2c bus names are supposed to be unique. If you request a bus by
name and this name happens to not be unique, then the tools will play
it safe and quit. This is better than writing to the wrong device.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5195 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
f7b64dce7e
Split print_i2c_busses into a gathering part and a printing part.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5194 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
eda5918d0f
Refactor the handling of the I2CBUS parameter. This ensures more
consistency accross the i2c tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5193 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
aed7163f2b
Update the FSF address.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5164 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
194964d667
Use strchr() instead of the deprecated index().
Patch from Bernhard Fischer.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4862 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
0edf1c69c9
Add a Makefile to build, install and uninstall the tools, and make
them build again.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4487 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
c922a78bb4
Oops, forgot to create the trunk level.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4481 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago