From 35822084961cd9573c2e25a8b72dbdc6dee4e057 Mon Sep 17 00:00:00 2001 From: Dmitriy Linikov Date: Mon, 18 Dec 2017 12:10:49 +0000 Subject: [PATCH] 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 --- drivers/ioexpander/pcf8574.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ioexpander/pcf8574.c b/drivers/ioexpander/pcf8574.c index 56baaa7e8a..01d5e9e75a 100644 --- a/drivers/ioexpander/pcf8574.c +++ b/drivers/ioexpander/pcf8574.c @@ -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