diff --git a/drivers/input/ads7843e.c b/drivers/input/ads7843e.c index ecc78810886..f23fc7d5db2 100644 --- a/drivers/input/ads7843e.c +++ b/drivers/input/ads7843e.c @@ -251,8 +251,8 @@ static void ads7843e_unlock(FAR struct spi_dev_s *spi) #ifdef CONFIG_SPI_OWNBUS static inline void ads7843e_configspi(FAR struct spi_dev_s *spi) { - /* Configure SPI for the ADS7843. But only if we own the SPI bus. Otherwise, don't - * bother because it might change. + /* Configure SPI for the ADS7843. But only if we own the SPI bus. + * Otherwise, don't bother because it might change. */ SPI_SELECT(spi, SPIDEV_TOUCHSCREEN, true); @@ -282,7 +282,7 @@ static inline void ads7843e_configspi(FAR struct spi_dev_s *spi) * 12-bit DDDDDDDDDDDD... * response * - * The BUSY output is high imedance when /CS is high. BUSY goes low when + * The BUSY output is high impedance when /CS is high. BUSY goes low when * /CS goes low (within 200ns). BUSY goes high on the falling edge of the * 8th clock (within 200ns); BUSY goes low again after the falling edge of * first clock of the 12-bit data read, at the leading edge of the MS bit @@ -311,7 +311,7 @@ static uint16_t ads7843e_sendcmd(FAR struct ads7843e_dev_s *priv, uint8_t cmd) (void)SPI_SEND(priv->spi, cmd); - /* Wait a tiny amount to make sure that the aquisition time is complete */ + /* Wait a tiny amount to make sure that the acquisition time is complete */ up_udelay(3); /* 3 microseconds */ @@ -625,7 +625,6 @@ static void ads7843e_worker(FAR void *arg) if (priv->sample.contact == CONTACT_NONE || priv->sample.contact == CONTACT_UP) - { goto ignored; } @@ -807,7 +806,7 @@ static int ads7843e_open(FAR struct file *filep) ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -924,7 +923,7 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ idbg("sem_wait: %d\n", errno); DEBUGASSERT(errno == EINTR); @@ -1037,7 +1036,7 @@ static int ads7843e_ioctl(FAR struct file *filep, int cmd, unsigned long arg) ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -1097,7 +1096,7 @@ static int ads7843e_poll(FAR struct file *filep, FAR struct pollfd *fds, ret = sem_wait(&priv->devsem); if (ret < 0) { - /* This should only happen if the wait was canceled by an signal */ + /* This should only happen if the wait was cancelled by an signal */ DEBUGASSERT(errno == EINTR); return -EINTR; @@ -1279,7 +1278,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi, /* If multiple ADS7843E devices are supported, then we will need to add * this new instance to a list of device instances so that it can be - * found by the interrupt handler based on the recieved IRQ number. + * found by the interrupt handler based on the received IRQ number. */ #ifdef CONFIG_ADS7843E_MULTIPLE