I2C: Remove the setfrequency method from the interface

This commit is contained in:
Gregory Nutt 2016-02-01 16:32:48 -06:00
parent 4e4dbda41e
commit 5ab3722d5d
4 changed files with 0 additions and 16 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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;

View File

@ -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;