mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 17:03:29 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue