From 5ab3722d5d5876bdce98489cb09079e85e21e39f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 1 Feb 2016 16:32:48 -0600 Subject: [PATCH] I2C: Remove the setfrequency method from the interface --- system/i2c/i2c_dev.c | 4 ---- system/i2c/i2c_get.c | 4 ---- system/i2c/i2c_set.c | 4 ---- system/i2c/i2c_verf.c | 4 ---- 4 files changed, 16 deletions(-) diff --git a/system/i2c/i2c_dev.c b/system/i2c/i2c_dev.c index 399df580d..645ca1740 100644 --- a/system/i2c/i2c_dev.c +++ b/system/i2c/i2c_dev.c @@ -157,10 +157,6 @@ int i2ccmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv) return ERROR; } - /* Set the frequency and address (NOTE: Only 7-bit address supported now) */ - - I2C_SETFREQUENCY(dev, i2ctool->freq); - /* Probe each address */ i2ctool_printf(i2ctool, " 0 1 2 3 4 5 6 7 8 9 a b c d e f\n"); diff --git a/system/i2c/i2c_get.c b/system/i2c/i2c_get.c index ee0e39e17..55edc17d4 100644 --- a/system/i2c/i2c_get.c +++ b/system/i2c/i2c_get.c @@ -144,10 +144,6 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the iI2C frequency */ - - I2C_SETFREQUENCY(dev, i2ctool->freq); - /* Loop for the requested number of repititions */ regaddr = i2ctool->regaddr; diff --git a/system/i2c/i2c_set.c b/system/i2c/i2c_set.c index 756ed3f5c..81fbbb200 100644 --- a/system/i2c/i2c_set.c +++ b/system/i2c/i2c_set.c @@ -172,10 +172,6 @@ int i2ccmd_set(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the I2C frequency */ - - I2C_SETFREQUENCY(dev, i2ctool->freq); - /* Loop for the requested number of repititions */ regaddr = i2ctool->regaddr; diff --git a/system/i2c/i2c_verf.c b/system/i2c/i2c_verf.c index d6b4ec2a2..66dc0faf1 100644 --- a/system/i2c/i2c_verf.c +++ b/system/i2c/i2c_verf.c @@ -174,10 +174,6 @@ int i2ccmd_verf(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* Set the I2C frequency */ - - I2C_SETFREQUENCY(dev, i2ctool->freq); - /* Loop for the requested number of repititions */ regaddr = i2ctool->regaddr;