I2C: Remove the setfrequency method from the interface

This commit is contained in:
Gregory Nutt
2016-02-01 16:31:13 -06:00
parent 6ad641888b
commit 69ce24c70c
22 changed files with 5 additions and 107 deletions
-5
View File
@@ -1073,7 +1073,6 @@ static int tsc2007_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
FAR uint32_t *ptr = (FAR uint32_t *)((uintptr_t)arg);
DEBUGASSERT(priv->config != NULL && ptr != NULL);
priv->config->frequency = *ptr;
(void)I2C_SETFREQUENCY(priv->i2c, *ptr);
}
break;
@@ -1255,10 +1254,6 @@ int tsc2007_register(FAR struct i2c_master_s *dev,
sem_init(&priv->devsem, 0, 1); /* Initialize device structure semaphore */
sem_init(&priv->waitsem, 0, 0); /* Initialize pen event wait semaphore */
/* Set the I2C frequency (saving the actual frequency) */
config->frequency = I2C_SETFREQUENCY(dev, config->frequency);
/* Make sure that interrupts are disabled */
config->clear(config);