bluetooth: hci: spi: Fix compile warning
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 <kumar.gala@linaro.org>
This commit is contained in:
parent
42dc4e9b51
commit
ef1cc3f488
1 changed files with 1 additions and 1 deletions
|
@ -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("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue