summaryrefslogtreecommitdiff
path: root/commandline/i2cdetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'commandline/i2cdetect.c')
-rw-r--r--commandline/i2cdetect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commandline/i2cdetect.c b/commandline/i2cdetect.c
index 88e5d2e..341900f 100644
--- a/commandline/i2cdetect.c
+++ b/commandline/i2cdetect.c
@@ -24,9 +24,9 @@ int main(int argc, char **argv)
}
- i2c_start();
+ i2c_hw_start();
- if (i2c_tx_byte(i2cid))
+ if (i2c_hw_tx_byte(i2cid))
printf(" %02x", id);
else
fputs(" --", stdout);
@@ -35,7 +35,7 @@ int main(int argc, char **argv)
fputs("\n", stdout);
- i2c_stop();
+ i2c_hw_stop();
i2c_deinit();
return 0;
}