Merged in hardlulz/modem-3.0-nuttx/fix-pcf8574-build (pull request #556)

Fixed build of PCF8574 driver when its interrupts aren't enabled by config.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Dmitriy Linikov 2017-12-18 12:10:49 +00:00 committed by Gregory Nutt
parent b4875e2286
commit 3582208496
1 changed files with 2 additions and 1 deletions

View File

@ -776,7 +776,7 @@ static FAR void *pcf8574_attach(FAR struct ioexpander_dev_s *dev,
* 0 on success, else a negative error code
*
****************************************************************************/
#ifdef CONFIG_PCF8574_INT_ENABLE
static int pcf8574_detach(FAR struct ioexpander_dev_s *dev, FAR void *handle)
{
FAR struct pcf8574_dev_s *priv = (FAR struct pcf8574_dev_s *)dev;
@ -792,6 +792,7 @@ static int pcf8574_detach(FAR struct ioexpander_dev_s *dev, FAR void *handle)
cb->cbarg = NULL;
return OK;
}
#endif
/****************************************************************************
* Name: pcf8574_int_update