summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/i2cdetect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/i2cdetect.c b/tools/i2cdetect.c
index 5ab4ea4..2d4d3b4 100644
--- a/tools/i2cdetect.c
+++ b/tools/i2cdetect.c
@@ -160,12 +160,16 @@ static const struct func all_func[] = {
.name = "I2C Block Write" },
{ .value = I2C_FUNC_SMBUS_READ_I2C_BLOCK,
.name = "I2C Block Read" },
+#if defined(I2C_FUNC_SMBUS_HOST_NOTIFY)
{ .value = I2C_FUNC_SMBUS_HOST_NOTIFY,
.name = "SMBus Host Notify" },
+#endif
{ .value = I2C_FUNC_10BIT_ADDR,
.name = "10-bit addressing" },
+#if defined(I2C_FUNC_SLAVE)
{ .value = I2C_FUNC_SLAVE,
.name = "Target mode" },
+#endif
{ .value = 0, .name = "" }
};