diff --git a/drivers/analog/lmp92001.c b/drivers/analog/lmp92001.c index 026d60fad3..6e75a32e63 100644 --- a/drivers/analog/lmp92001.c +++ b/drivers/analog/lmp92001.c @@ -255,7 +255,7 @@ static int lmp92001_gpio_readpin(FAR struct ioexpander_dev_s *dev, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int lmp92001_gpio_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count); + FAR const bool *values, int count); static int lmp92001_gpio_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); @@ -1376,7 +1376,7 @@ static int lmp92001_gpio_readpin(FAR struct ioexpander_dev_s *dev, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int lmp92001_gpio_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { } diff --git a/drivers/ioexpander/ioe_dummy.c b/drivers/ioexpander/ioe_dummy.c index bd2af0de6a..fb2b4a356b 100644 --- a/drivers/ioexpander/ioe_dummy.c +++ b/drivers/ioexpander/ioe_dummy.c @@ -119,7 +119,7 @@ static int ioe_dummy_readpin(FAR struct ioexpander_dev_s *dev, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int ioe_dummy_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count); + FAR const bool *values, int count); static int ioe_dummy_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); @@ -442,7 +442,7 @@ static int ioe_dummy_readpin(FAR struct ioexpander_dev_s *dev, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int ioe_dummy_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct ioe_dummy_dev_s *priv = (FAR struct ioe_dummy_dev_s *)dev; uint8_t pin; diff --git a/drivers/ioexpander/iso1h812g.c b/drivers/ioexpander/iso1h812g.c index 93a0e3f031..36d15234ee 100644 --- a/drivers/ioexpander/iso1h812g.c +++ b/drivers/ioexpander/iso1h812g.c @@ -81,7 +81,7 @@ static int iso1h812g_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int iso1h812g_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int iso1h812g_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); #endif @@ -336,8 +336,8 @@ static int iso1h812g_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int iso1h812g_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, - int count) + FAR const uint8_t *pins, + FAR const bool *values, int count) { FAR struct iso1h812g_dev_s *priv = (FAR struct iso1h812g_dev_s *)dev; int ret; diff --git a/drivers/ioexpander/iso1i813t.c b/drivers/ioexpander/iso1i813t.c index 348d1d8020..144f35cdbf 100644 --- a/drivers/ioexpander/iso1i813t.c +++ b/drivers/ioexpander/iso1i813t.c @@ -80,7 +80,7 @@ static int iso1i813t_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int iso1i813t_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int iso1i813t_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); #endif @@ -349,8 +349,8 @@ static int iso1i813t_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int iso1i813t_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, - int count) + FAR const uint8_t *pins, + FAR const bool *values, int count) { gpiowarn("WARNING: ISO1I813T is only input expander!\n"); diff --git a/drivers/ioexpander/mcp23x08.c b/drivers/ioexpander/mcp23x08.c index 730a1faf6a..bea149d044 100644 --- a/drivers/ioexpander/mcp23x08.c +++ b/drivers/ioexpander/mcp23x08.c @@ -74,7 +74,7 @@ static int mcp23x08_readbuf(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int mcp23x08_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int mcp23x08_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); static int mcp23x08_multireadbuf(FAR struct ioexpander_dev_s *dev, @@ -562,7 +562,7 @@ static int mcp23x08_getmultibits(FAR struct mcp23x08_dev_s *priv, static int mcp23x08_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct mcp23x08_dev_s *priv = (FAR struct mcp23x08_dev_s *)dev; uint8_t addr = MCP23X08_GPIOA; diff --git a/drivers/ioexpander/mcp23x17.c b/drivers/ioexpander/mcp23x17.c index 418175ce2d..d3175a1670 100644 --- a/drivers/ioexpander/mcp23x17.c +++ b/drivers/ioexpander/mcp23x17.c @@ -74,7 +74,7 @@ static int mcp23x17_readbuf(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int mcp23x17_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int mcp23x17_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); static int mcp23x17_multireadbuf(FAR struct ioexpander_dev_s *dev, @@ -572,7 +572,7 @@ static int mcp23x17_getmultibits(FAR struct mcp23x17_dev_s *priv, static int mcp23x17_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct mcp23x17_dev_s *priv = (FAR struct mcp23x17_dev_s *)dev; uint8_t addr = MCP23X17_GPIOA; diff --git a/drivers/ioexpander/pca9538.c b/drivers/ioexpander/pca9538.c index d0c75780d3..ac12a1a1c8 100644 --- a/drivers/ioexpander/pca9538.c +++ b/drivers/ioexpander/pca9538.c @@ -67,7 +67,7 @@ static int pca9538_readbuf(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pca9538_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int pca9538_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); static int pca9538_multireadbuf(FAR struct ioexpander_dev_s *dev, @@ -536,7 +536,7 @@ static int pca9538_getmultibits(FAR struct pca9538_dev_s *pca, uint8_t addr, static int pca9538_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct pca9538_dev_s *pca = (FAR struct pca9538_dev_s *)dev; uint8_t addr = PCA9538_REG_OUTPUT; diff --git a/drivers/ioexpander/pca9555.c b/drivers/ioexpander/pca9555.c index 03270c02f4..d74d633e7e 100644 --- a/drivers/ioexpander/pca9555.c +++ b/drivers/ioexpander/pca9555.c @@ -71,7 +71,7 @@ static int pca9555_readbuf(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pca9555_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int pca9555_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); static int pca9555_multireadbuf(FAR struct ioexpander_dev_s *dev, @@ -554,8 +554,8 @@ static int pca9555_getmultibits(FAR struct pca9555_dev_s *pca, uint8_t addr, ****************************************************************************/ static int pca9555_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, - int count) + FAR const uint8_t *pins, + FAR const bool *values, int count) { FAR struct pca9555_dev_s *pca = (FAR struct pca9555_dev_s *)dev; uint8_t addr = PCA9555_REG_OUTPUT; diff --git a/drivers/ioexpander/pcf8574.c b/drivers/ioexpander/pcf8574.c index aa8c9edf01..9e8b1661fb 100644 --- a/drivers/ioexpander/pcf8574.c +++ b/drivers/ioexpander/pcf8574.c @@ -61,7 +61,7 @@ static int pcf8574_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pcf8574_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int pcf8574_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); #endif @@ -527,7 +527,7 @@ errout_with_lock: #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pcf8574_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct pcf8574_dev_s *priv = (FAR struct pcf8574_dev_s *)dev; uint8_t pin; diff --git a/drivers/ioexpander/pcf8575.c b/drivers/ioexpander/pcf8575.c index 4943d86115..a702953e31 100644 --- a/drivers/ioexpander/pcf8575.c +++ b/drivers/ioexpander/pcf8575.c @@ -63,7 +63,7 @@ static int pcf8575_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pcf8575_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int pcf8575_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); #endif @@ -467,8 +467,8 @@ errout_with_lock: #ifdef CONFIG_IOEXPANDER_MULTIPIN static int pcf8575_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, - int count) + FAR const uint8_t *pins, + FAR const bool *values, int count) { FAR struct pcf8575_dev_s *priv = (FAR struct pcf8575_dev_s *)dev; uint8_t pin; diff --git a/drivers/ioexpander/skeleton.c b/drivers/ioexpander/skeleton.c index 1fe9c3541f..7f7d7de083 100644 --- a/drivers/ioexpander/skeleton.c +++ b/drivers/ioexpander/skeleton.c @@ -93,7 +93,7 @@ static int skel_readbuf(FAR struct ioexpander_dev_s *dev, uint8_t pin, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int skel_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count); + FAR const bool *values, int count); static int skel_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); @@ -430,7 +430,7 @@ static int skel_getmultibits(FAR struct skel_dev_s *priv, FAR uint8_t *pins, #ifdef CONFIG_IOEXPANDER_MULTIPIN static int skel_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct skel_dev_s *priv = (FAR struct skel_dev_s *)dev; ioe_pinset_t pinset; diff --git a/drivers/ioexpander/tca64xx.c b/drivers/ioexpander/tca64xx.c index eceb96a314..91c9c517e3 100644 --- a/drivers/ioexpander/tca64xx.c +++ b/drivers/ioexpander/tca64xx.c @@ -68,7 +68,7 @@ static int tca64_readpin(FAR struct ioexpander_dev_s *dev, uint8_t pin, FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN static int tca64_multiwritepin(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, int count); + FAR const uint8_t *pins, FAR const bool *values, int count); static int tca64_multireadpin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count); #endif @@ -761,7 +761,7 @@ errout_with_lock: #ifdef CONFIG_IOEXPANDER_MULTIPIN static int tca64_multiwritepin(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, - FAR bool *values, int count) + FAR const bool *values, int count) { FAR struct tca64_dev_s *priv = (FAR struct tca64_dev_s *)dev; ioe_pinset_t pinset; diff --git a/include/nuttx/ioexpander/ioexpander.h b/include/nuttx/ioexpander/ioexpander.h index a63946eaad..83e458c76f 100644 --- a/include/nuttx/ioexpander/ioexpander.h +++ b/include/nuttx/ioexpander/ioexpander.h @@ -331,8 +331,8 @@ struct ioexpander_ops_s FAR bool *value); #ifdef CONFIG_IOEXPANDER_MULTIPIN CODE int (*ioe_multiwritepin)(FAR struct ioexpander_dev_s *dev, - FAR const uint8_t *pins, FAR bool *values, - int count); + FAR const uint8_t *pins, + FAR const bool *values, int count); CODE int (*ioe_multireadpin)(FAR struct ioexpander_dev_s *dev, FAR const uint8_t *pins, FAR bool *values, int count);