summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* White space cleanupkhali2015-07-071-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6310 7894878c-1315-0410-8ee3-d5d059ff63e0
* Don't hard-code lib directory namekhali2015-06-171-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6290 7894878c-1315-0410-8ee3-d5d059ff63e0
* Enable static use of libi2ckhali2015-06-171-0/+4
| | | | | | | | | | When debugging embedded systems, it is often nice to simply TFTP the desired i2ctool to the target without the hazzle of dealing with shared libs. Using -static is overkill, too, so let's add a switch which will only link functions from libi2c statically. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6289 7894878c-1315-0410-8ee3-d5d059ff63e0
* Update my e-mail address and copyright years.khali2014-02-199-10/+10
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6224 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add missing option -r to usage summarykhali2013-10-051-1/+1
| | | | | | | Reported by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6201 7894878c-1315-0410-8ee3-d5d059ff63e0
* Build fails with recent versions of gcc/ld.groeck2012-12-211-4/+4
| | | | | | | | Fix by specifying library after .o files. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6104 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cdetect: Clarify the SMBus commands used for probing by default.khali2012-12-201-4/+8
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6103 7894878c-1315-0410-8ee3-d5d059ff63e0
* Consistently use "SMBus receive byte" for the short byte read we usekhali2012-09-072-4/+4
| | | | | | | for chip detection. "SMBus read byte" is a different SMBus transaction. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6065 7894878c-1315-0410-8ee3-d5d059ff63e0
* If either SMBus Quick Write or SMBus Receive Byte command is missing,khali2012-09-071-15/+41
| | | | | | | still proceed and do a best-effort detection. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6064 7894878c-1315-0410-8ee3-d5d059ff63e0
* New library for I2C device access under Linux. As a first step, thekhali2012-05-211-4/+5
| | | | | | | | library will host the i2c_smbus_*() inline functions which were previously in the user-space flavor of <linux/i2c-dev.h>. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6054 7894878c-1315-0410-8ee3-d5d059ff63e0
* Tools depends on header file version.h. Add the missing dependency tokhali2012-05-211-4/+4
| | | | | | | the build system. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6049 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2c-dev: Move SMBus helper functions to include/i2c/smbus.hkhali2012-04-266-11/+25
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Check range for data value maskgroeck2011-02-151-0/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5927 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Get command/mode before reading datagroeck2011-02-151-44/+55
| | | | | | | | | Get and validate the command/mode parameter for all commands before reading and evaluating actual data. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5926 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: More stringent parameter validationgroeck2011-02-151-0/+3
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5924 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Abort if value mask is set for block commandsgroeck2011-02-151-0/+4
| | | | | | | | | Specifying the value mask is not supported for block commands, abort if it is specified anyway. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5923 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Check number of arguments for block data writesgroeck2011-02-151-1/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5922 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Removed obsolete method to specify value maskgroeck2011-02-151-12/+0
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5921 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cset: Replace blanks at beginning of line with tabsgroeck2011-02-141-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5920 7894878c-1315-0410-8ee3-d5d059ff63e0
* Added support to write SMBus and I2C block commands to i2csetgroeck2011-01-292-11/+81
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5911 7894878c-1315-0410-8ee3-d5d059ff63e0
* Use a 20-bit limit for the i2c bus number.khali2010-11-266-18/+21
| | | | | | | | Use snprintf for the i2c dev node name. Update copyright years. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5885 7894878c-1315-0410-8ee3-d5d059ff63e0
* tools: Drop arbitrary limit on I2C bus numberkhali2010-11-251-4/+4
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5884 7894878c-1315-0410-8ee3-d5d059ff63e0
* Drop legacy reference to ISA bus. The i2c-isa fake bus driver is gonekhali2010-09-221-2/+2
| | | | | | | long ago, today the message is only confusing. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5862 7894878c-1315-0410-8ee3-d5d059ff63e0
* Properly handle the rare case where /dev/i2c exists but isn't akhali2010-08-181-1/+1
| | | | | | | directory. Patch from Florian Fainelli. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5854 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for short writes with PEC.khali2009-09-172-10/+22
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5771 7894878c-1315-0410-8ee3-d5d059ff63e0
* List include first, so that other modules can use it.khali2009-01-191-5/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5610 7894878c-1315-0410-8ee3-d5d059ff63e0
* Complete GPL header.khali2009-01-132-0/+20
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5596 7894878c-1315-0410-8ee3-d5d059ff63e0
* Licensing clarification.khali2009-01-131-1/+4
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5594 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add missing includes.khali2008-11-281-0/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5452 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for reading back to short writes.khali2008-11-201-4/+2
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5394 7894878c-1315-0410-8ee3-d5d059ff63e0
* Make reading back the written value optional.khali2008-11-202-1/+13
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5393 7894878c-1315-0410-8ee3-d5d059ff63e0
* Clarify the requirements of data value masking.khali2008-11-201-1/+4
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5392 7894878c-1315-0410-8ee3-d5d059ff63e0
* Allow masking on short writes.khali2008-11-201-3/+8
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5391 7894878c-1315-0410-8ee3-d5d059ff63e0
* Set the data value mask with -m. The old method is still supported forkhali2008-11-202-9/+29
| | | | | | | 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
* Use consistent transaction names (based on the SMBus specification)khali2008-05-053-13/+17
| | | | | | | when complaining about a missing adapter functionality. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5242 7894878c-1315-0410-8ee3-d5d059ff63e0
* Share the error string between all functionality checks.khali2008-05-054-24/+14
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5241 7894878c-1315-0410-8ee3-d5d059ff63e0
* No need to print the i2c bus number in functionality error message.khali2008-05-053-38/+36
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5240 7894878c-1315-0410-8ee3-d5d059ff63e0
* Split the functionality checking code into a separate function forkhali2008-05-051-61/+67
| | | | | | | clarity. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5239 7894878c-1315-0410-8ee3-d5d059ff63e0
* Close device file before we exit.khali2008-05-051-0/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5238 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for short writes (SMBus send byte).khali2008-05-052-23/+55
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5237 7894878c-1315-0410-8ee3-d5d059ff63e0
* List the optional command line parameters in a consistent way.khali2008-05-055-10/+8
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5236 7894878c-1315-0410-8ee3-d5d059ff63e0
* Whitespace cleanups.khali2008-04-245-90/+90
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5210 7894878c-1315-0410-8ee3-d5d059ff63e0
* Move the confirmation to a separate function, as is done in i2cgetkhali2008-04-241-29/+37
| | | | | | | already. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5209 7894878c-1315-0410-8ee3-d5d059ff63e0
* Move the functionality checks to a separate function, as is done inkhali2008-04-241-42/+46
| | | | | | | i2cget already. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5208 7894878c-1315-0410-8ee3-d5d059ff63e0
* Minor optimizations and cleanups.khali2008-04-242-18/+17
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5207 7894878c-1315-0410-8ee3-d5d059ff63e0
* Unknown options are fatal, so label them error rather than warning.khali2008-04-244-8/+8
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5206 7894878c-1315-0410-8ee3-d5d059ff63e0
* More user-friendly error messages for wrong I2C bus parameter.khali2008-04-241-4/+3
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5205 7894878c-1315-0410-8ee3-d5d059ff63e0
* Move the chip address parsing to a common function for consistency.khali2008-04-245-16/+30
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5204 7894878c-1315-0410-8ee3-d5d059ff63e0
* Consistently restrict the allowed I2C device address to 0x03 - 0x77.khali2008-04-245-9/+9
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5203 7894878c-1315-0410-8ee3-d5d059ff63e0
* Move print_i2c_busses from i2cbusses.c to i2cdetect.c, as it iskhali2008-04-243-34/+35
| | | | | | | only used there. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5202 7894878c-1315-0410-8ee3-d5d059ff63e0