Jean Delvare
91c0a32585
Less confusing algorithm names. We'll drop this field soon anyway.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4240 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-14 13:06:35 +00:00
Jean Delvare
7e11801913
The I2C_FUNCS ioctl expects an unsigned long.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4230 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-11-10 09:22:12 +00:00
Jean Delvare
4c211d81d9
prog/dump/*.c, prog/detect/*.c: Handle possible error in fgets().
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4080 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-01 09:46:50 +00:00
Jean Delvare
2cc8929c9e
Stop printing the algorithm name unless /proc compatibility format
...
is requested. Print the correct bus type if bus functionality can be
queried (will work if i2c-dev is loaded and user has write access to
/dev/i2c*).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3078 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 12:03:14 +00:00
Jean Delvare
32fbdf8ba4
Add a "quiet" parameter to open_i2c_dev() to prevent it from
...
displaying error messages.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3077 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 11:38:32 +00:00
Jean Delvare
1cc6544e2b
Refactor i2c device opening.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2675 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-28 20:42:49 +00:00
Mark D. Studebaker
36c7305e78
use /sys/class/i2c-dev/i2c-x/name file if available;
...
solves problem with drivers that have multiple busses;
requires Greg's patch (for kernel 2.6.5?)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2341 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-06 20:27:41 +00:00
Mark D. Studebaker
82caa7986f
add -l option to i2cdetect so 'i2cdetect -l'
...
can be used as a replacement for 'cat /proc/bus/i2c'
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2100 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 04:37:08 +00:00
Mark D. Studebaker
713f3eddb7
simplification
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2098 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 02:27:41 +00:00
Mark D. Studebaker
5bfcb08e18
report i2c-dev bus numbers rather than i2c-adapter numbers,
...
which may be different.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2097 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-27 23:53:10 +00:00
Mark D. Studebaker
1ec05114f4
cleanups
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2086 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-22 22:27:19 +00:00
Mark D. Studebaker
4f3ded5af9
use common function to print out available i2c busses;
...
add sysfs support to that function
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2065 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-17 03:04:09 +00:00