Fix some stylistic issues found by tools/nxstyle

This commit is contained in:
Gregory Nutt 2015-11-17 17:38:46 -06:00
parent a654f35d98
commit b60422836e

View File

@ -454,7 +454,8 @@ static void pca9555_irqworker(void *arg)
int ret, bits; int ret, bits;
FAR struct pca9555_dev_s *pca = (FAR struct pca9555_dev_s *)arg; FAR struct pca9555_dev_s *pca = (FAR struct pca9555_dev_s *)arg;
/* read inputs */ /* Read inputs */
ret = I2C_WRITEREAD(pca->i2c, &addr, 1, buf, 2); ret = I2C_WRITEREAD(pca->i2c, &addr, 1, buf, 2);
if (ret != OK) if (ret != OK)
{ {
@ -463,8 +464,8 @@ static void pca9555_irqworker(void *arg)
bits = (buf[0] << 8) | buf[1]; bits = (buf[0] << 8) | buf[1];
/* If signal PID is registered, enqueue signal. */
/* if signal PID is registered, enqueue signal. */
if (pca->dev.sigpid) if (pca->dev.sigpid)
{ {
#ifdef CONFIG_CAN_PASS_STRUCTS #ifdef CONFIG_CAN_PASS_STRUCTS
@ -474,13 +475,16 @@ static void pca9555_irqworker(void *arg)
#else #else
ret = sigqueue(pca->dev.sigpid, pca->dev.sigval, (FAR void *)bits); ret = sigqueue(pca->dev.sigpid, pca->dev.sigval, (FAR void *)bits);
#endif #endif
dbg("pca signal %04X (sig %d to pid %d)\n",bits, pca->dev.sigval, pca->dev.sigpid); dbg("pca signal %04X (sig %d to pid %d)\n",
bits, pca->dev.sigval, pca->dev.sigpid);
} }
else else
{ {
dbg("no handler registered\n"); dbg("no handler registered\n");
} }
/* re-enable */
/* Re-enable */
pca->config->enable(pca->config, TRUE); pca->config->enable(pca->config, TRUE);
} }