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:
Mark D. Studebaker committed 2003-11-28 04:37:08 +00:00
1 parent 0872117cb9
commit 82caa7986f
4 files changed
+46 -21

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@
#define HAVE_PEC 1
#endif
void print_i2c_busses();
void print_i2c_busses(int);
void help(void)
{
@@ -54,7 +54,7 @@ void help(void)
fprintf(stderr," ADDRESS is an integer 0x00 - 0x7f\n");
fprintf(stderr," BANK and BANKREG are for byte and word accesses (default bank 0, reg 0x4e)\n");
fprintf(stderr," BANK is the command for smbusblock accesses (default 0)\n");
print_i2c_busses();
print_i2c_busses(0);
}
int main(int argc, char *argv[])