Jean Delvare
f0892fadae
List include first, so that other modules can use it.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5610 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
52cb1789b4
Complete GPL header.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5596 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
24f819ed0c
Licensing clarification.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5594 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0d84adf510
Add missing includes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5452 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0e972ad9fd
Add support for reading back to short writes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5394 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
35a929de32
Make reading back the written value optional.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5393 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
f9bad5666d
Clarify the requirements of data value masking.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5392 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
0c270e09de
Allow masking on short writes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5391 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
c797cbaaeb
Set the data value mask with -m. The old method is still supported for
compatibility, but is considered deprecated and is no longer documented.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5390 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
54cee12770
Use consistent transaction names (based on the SMBus specification)
when complaining about a missing adapter functionality.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5242 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
fc38f35ce4
Share the error string between all functionality checks.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5241 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
f67174055a
No need to print the i2c bus number in functionality error message.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5240 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
9160a95ad0
Split the functionality checking code into a separate function for
clarity.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5239 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
cc723a46f7
Close device file before we exit.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5238 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
c3d335575f
Add support for short writes (SMBus send byte).
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5237 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
7ad89259ab
List the optional command line parameters in a consistent way.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5236 7894878c-1315-0410-8ee3-d5d059ff63e0
17 years ago
Jean Delvare
8cc44b8c9c
Whitespace cleanups.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5210 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
8603e2aab2
Move the confirmation to a separate function, as is done in i2cget
already.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5209 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
87154f13cc
Move the functionality checks to a separate function, as is done in
i2cget already.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5208 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
68fb2e6229
Minor optimizations and cleanups.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5207 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2751626db8
Unknown options are fatal, so label them error rather than warning.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5206 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
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
2e942d16a5
Consistently restrict the allowed I2C device address to 0x03 - 0x77.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5203 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
2c57ef91a2
Unify and shorten the usage messages. The details can be found in
the man pages so no need to be verbose.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5201 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
adc03e3cf3
Make the includes order correct and consistent accross all tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5199 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
f6a402514f
Minor consistency fix.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5198 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
8e4ddd1f56
Let the user specify a register range.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5151 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
0d1b482ef0
Remove reference to hardware monitoring chips. i2cdump works on all I2C/SMBus
chips, not just hardware monitoring chips.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5140 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7abc52d779
Return the correct error code on I2C block read failure.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5073 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
afff1260eb
Final status messages go to stdout.
Fix two harmless file descriptor leaks.
Don't return an error when readback fails or doesn't match, it might be OK.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5001 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
fcb6bce3c8
Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC, as was done
in the Linux 2.6 kernel.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4948 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7d011355c6
Fix the build of i2cset and i2cget. They were accidentally swapped.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4915 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
5db6cac12c
Fix path to include directory. Reported by Ryan Mallon.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4911 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3889675ca9
Fix license name.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4907 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2dc7307487
Rename module Makefiles from Makefile to Module.mk. They can't be used
as standalone makefiles.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4906 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
91dc800ac6
Add a main Makefile and make it call the tools and eeprom modules
Makefiles.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4905 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
1790eb6dd4
License fix.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4671 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7457b172b0
Show more warnings, and fix them.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4499 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a22bba2fd3
Enable lots of warnings.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4492 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a738f64223
Remove remaining references to lm-sensors.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4488 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