I2C: Remove the setfrequency method from the interface
This commit is contained in:
parent
4e4dbda41e
commit
5ab3722d5d
@ -157,10 +157,6 @@ int i2ccmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the frequency and address (NOTE: Only 7-bit address supported now) */
|
|
||||||
|
|
||||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
|
||||||
|
|
||||||
/* Probe each address */
|
/* Probe each address */
|
||||||
|
|
||||||
i2ctool_printf(i2ctool, " 0 1 2 3 4 5 6 7 8 9 a b c d e f\n");
|
i2ctool_printf(i2ctool, " 0 1 2 3 4 5 6 7 8 9 a b c d e f\n");
|
||||||
|
@ -144,10 +144,6 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the iI2C frequency */
|
|
||||||
|
|
||||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
|
||||||
|
|
||||||
/* Loop for the requested number of repititions */
|
/* Loop for the requested number of repititions */
|
||||||
|
|
||||||
regaddr = i2ctool->regaddr;
|
regaddr = i2ctool->regaddr;
|
||||||
|
@ -172,10 +172,6 @@ int i2ccmd_set(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the I2C frequency */
|
|
||||||
|
|
||||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
|
||||||
|
|
||||||
/* Loop for the requested number of repititions */
|
/* Loop for the requested number of repititions */
|
||||||
|
|
||||||
regaddr = i2ctool->regaddr;
|
regaddr = i2ctool->regaddr;
|
||||||
|
@ -174,10 +174,6 @@ int i2ccmd_verf(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the I2C frequency */
|
|
||||||
|
|
||||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
|
||||||
|
|
||||||
/* Loop for the requested number of repititions */
|
/* Loop for the requested number of repititions */
|
||||||
|
|
||||||
regaddr = i2ctool->regaddr;
|
regaddr = i2ctool->regaddr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user