From 59b9a305929bd11d812dfc90905b0831eb5f17c2 Mon Sep 17 00:00:00 2001 From: Fotis Panagiotopoulos Date: Mon, 9 Aug 2021 13:47:38 +0300 Subject: [PATCH] Compile fixes in MCP23X17 driver. --- drivers/ioexpander/mcp23x17.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ioexpander/mcp23x17.c b/drivers/ioexpander/mcp23x17.c index ec1620e362..b7842228f2 100644 --- a/drivers/ioexpander/mcp23x17.c +++ b/drivers/ioexpander/mcp23x17.c @@ -45,11 +45,11 @@ # warning I2C support is required (CONFIG_I2C) #endif -#ifndef CONFIG_SCHED_WORKQUEUE +#if (!defined CONFIG_SCHED_WORKQUEUE) && (defined CONFIG_MCP23X17_INT_ENABLE) # error Work queue support is required (CONFIG_SCHED_WORKQUEUE) #endif -#ifndef CONFIG_SCHED_HPWORK +#if (!defined CONFIG_SCHED_HPWORK) && (defined CONFIG_MCP23X17_INT_ENABLE) # error High-Priority Work support is required (CONFIG_SCHED_HPWORK) #endif @@ -950,7 +950,6 @@ FAR struct ioexpander_dev_s *mcp23x17_initialize( FAR struct mcp23x17_config_s *config) { FAR struct mcp23x17_dev_s *priv; - int ret; DEBUGASSERT(i2cdev != NULL && config != NULL);