I2C: Remove setaddress method

This commit is contained in:
Gregory Nutt 2016-02-01 12:16:56 -06:00
parent 2709652753
commit ae0a55de53
4 changed files with 3 additions and 10 deletions

View File

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

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */