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:
parent
b4875e2286
commit
3582208496
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue