From ef1cc3f4889cac99192f1460ae74183b2381cdb9 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 25 Jul 2018 12:57:18 -0500 Subject: [PATCH] bluetooth: hci: spi: Fix compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit drivers/bluetooth/hci/spi.c: In function ‘bt_spi_open’: drivers/bluetooth/hci/spi.c:475:31: error: passing argument 2 of ‘gpio_init_callback’ from incompatible pointer type [-Werror=incompatible-pointer-types] gpio_init_callback(&gpio_cb, bt_spi_isr, BIT(GPIO_IRQ_PIN)); ^~~~~~~~~~ In file included from drivers/bluetooth/hci/spi.c:9:0: include/gpio.h:247:20: note: expected ‘gpio_callback_handler_t {aka void (*)(struct device *, struct gpio_callback *, long unsigned int)}’ but argument is of type ‘void (*)(struct device *, struct gpio_callback *, unsigned int)’ static inline void gpio_init_callback(struct gpio_callback *callback, ^~~~~~~~~~~~~~~~~~ Signed-off-by: Kumar Gala --- drivers/bluetooth/hci/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/spi.c b/drivers/bluetooth/hci/spi.c index 97bbe49b6db..2db692fcff5 100644 --- a/drivers/bluetooth/hci/spi.c +++ b/drivers/bluetooth/hci/spi.c @@ -162,7 +162,7 @@ static inline u16_t bt_spi_get_evt(u8_t *rxmsg) } static void bt_spi_isr(struct device *unused1, struct gpio_callback *unused2, - unsigned int unused3) + u32_t unused3) { BT_DBG("");