From ae0a55de535251fcfe08127263df9d56cd32e221 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 1 Feb 2016 12:16:56 -0600 Subject: [PATCH] I2C: Remove setaddress method --- system/i2c/i2c_dev.c | 4 ---- system/i2c/i2c_get.c | 3 +-- system/i2c/i2c_set.c | 3 +-- system/i2c/i2c_verf.c | 3 +-- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/system/i2c/i2c_dev.c b/system/i2c/i2c_dev.c index e01d68892..23ab89a25 100644 --- a/system/i2c/i2c_dev.c +++ b/system/i2c/i2c_dev.c @@ -178,10 +178,6 @@ int i2ccmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv) continue; } - /* Set the I2C address */ - - I2C_SETADDRESS(dev, addr, 7); - /* Set up data structures */ regaddr = 0; diff --git a/system/i2c/i2c_get.c b/system/i2c/i2c_get.c index 11ced453e..aa6a5b08b 100644 --- a/system/i2c/i2c_get.c +++ b/system/i2c/i2c_get.c @@ -144,10 +144,9 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the frequency and the address (NOTE: Only 7-bit address supported now) */ + /* Set the iI2C frequency */ I2C_SETFREQUENCY(dev, i2ctool->freq); - I2C_SETADDRESS(dev, i2ctool->addr, 7); /* Loop for the requested number of repititions */ diff --git a/system/i2c/i2c_set.c b/system/i2c/i2c_set.c index 16cdebae8..e555ab0ab 100644 --- a/system/i2c/i2c_set.c +++ b/system/i2c/i2c_set.c @@ -172,10 +172,9 @@ int i2ccmd_set(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the frequency and the address (NOTE: Only 7-bit address supported now) */ + /* Set the I2C frequency */ I2C_SETFREQUENCY(dev, i2ctool->freq); - I2C_SETADDRESS(dev, i2ctool->addr, 7); /* Loop for the requested number of repititions */ diff --git a/system/i2c/i2c_verf.c b/system/i2c/i2c_verf.c index a964a4cbe..d6b4ec2a2 100644 --- a/system/i2c/i2c_verf.c +++ b/system/i2c/i2c_verf.c @@ -174,10 +174,9 @@ int i2ccmd_verf(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the frequency and the address (NOTE: Only 7-bit address supported now) */ + /* Set the I2C frequency */ I2C_SETFREQUENCY(dev, i2ctool->freq); - I2C_SETADDRESS(dev, i2ctool->addr, 7); /* Loop for the requested number of repititions */