mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
I2C: Remove the setfrequency method from the interface
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user