mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
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
This commit is contained in:
1 parent
0872117cb9
commit
82caa7986f
4 files changed
+46
-21
No files matched your search
+2
-2
@@ -27,7 +27,7 @@
|
||||
#include "i2c-dev.h"
|
||||
#include "version.h"
|
||||
|
||||
void print_i2c_busses();
|
||||
void print_i2c_busses(int);
|
||||
void help(void) __attribute__ ((noreturn));
|
||||
|
||||
void help(void)
|
||||
@@ -35,7 +35,7 @@ void help(void)
|
||||
fprintf(stderr,"Syntax: i2cset I2CBUS CHIP-ADDRESS DATA-ADDRESS VALUE [MODE]\n");
|
||||
fprintf(stderr," MODE is 'b[yte]' or 'w[ord]' (default b)\n");
|
||||
fprintf(stderr," I2CBUS is an integer\n");
|
||||
print_i2c_busses();
|
||||
print_i2c_busses(0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user