| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The inlining issues are never going to be fixed in this branch, so
there is no point in flooding the build with these warnings.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Short writes used "daddress" for the value, but the masking code did
not expect that, and instead applied the mask to a variable that was
never used.
So change short writes to use "value" for the value, as all other
commands do. Adjust all code paths accordingly.
Reported by David Jedynak.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
|
|
|
|
|
| |
It's very unlikely that these paths will ever be truncated, but
better safe than sorry.
Suggested by Uwe Kleine-König.
|
|
|
|
|
|
|
|
| |
There was a last instance of sprintf which somehow was not converted.
I know it can't fail, but for consistency, let's use snprintf and
check for truncation as we already do in gather_i2c_busses().
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
|
| |
sprintf isn't safe, use snprintf instead.
|
|
|
|
|
|
|
|
|
| |
A maintenance branch isn't the right place for a brand new tool. Now
that i2c tools version 4.0 has been released, there's no reason to
keep i2ctransfer in the 3.1 branch, so delete it.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
|
|
|
|
|
|
|
|
| |
The Free Software Foundation address was outdated. Discovered by
Fedora's rpmlint. The current address can be found at:
https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Increese sleep time between writes to accomodate typical write
cycle times. An Atmel AT24C02 as well as an ON Semiconductor
CAT24C02 EEPROM specify 5ms. This resolves errors such as:
...
Bus: /dev/i2c-1, Address: 0x50, Mode: 8bit
Writing stdin starting at address 0x0
..Error i2c_write_2b: Input/output error
Error at line 162: write error
[JD] Define a single constant and add a note that this could be
revisited.
|
| |
|
|
|
|
| |
lm-sensors.org is no more, point to the I2C Tools wiki page instead.
|
|
|
|
| |
Original patch from Wolfram Sang.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This tool allows to construct and concat multiple I2C messages into one
single transfer. Its aim is to test I2C master controllers, and so there
is no SMBus fallback.
I've been missing such a tool a number of times now, so I finally got
around to writing it myself. As with all I2C tools, it can be dangerous,
but it can also be very useful when developing.
It has been tested with various Renesas I2C IP cores as well as Tegra,
i.MX and AT91.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
|
|
|
|
|
|
|
|
| |
Don't display generated files, so 'git status' becomes useful again.
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
|
|
|
|
|
|
|
|
|
|
| |
Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like
described here:
https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Based on a patch from Peter Missel. The meaning of byte 31, bit 1,
was inverted. Also, this bit is only meaningful if the extended
temperature range is supported (bit 0 is set.)
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6235 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Capik.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6234 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Contributed by Jaromir Capik.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6233 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
|
|
|
|
| |
When you do pydoc smbus, you just get the high level description.
There is no automatic display of the classes (like SMBus). This is
due to the name not being specified quite right in the type.
Contributed by Mike Frysinger.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6232 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6231 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6230 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6229 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
|
|
|
|
|
| |
I don't know what I had in mind but commits r6048:
i2c-dev: Move SMBus helper functions to include/i2c/smbus.h
and r6052:
Add header file missed from a previous commit
were way too intrusive for a maintenance branch. Revert most of
them, only keeping the legitimate include fixes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6228 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6227 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6225 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Reported by Jaromir Capik.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6202 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6160 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6157 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Contributed by Paul Goyette.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6156 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6154 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6153 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6152 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6151 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6122 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Function sprint doesn't exist, sprintf was intended.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6121 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6110 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
1.2.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6109 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6108 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6107 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
Thomas Gibson.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6106 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
is loaded. This can happen, handle the case gracefully.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6063 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6052 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6051 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
|
|
|
| |
the build system.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6049 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
|
|
|
|
| |
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6047 7894878c-1315-0410-8ee3-d5d059ff63e0
|