diff --git a/drivers/wireless/bluetooth/bt_uart_shim.c b/drivers/wireless/bluetooth/bt_uart_shim.c index 8d9ac8fef9..4c92a851cf 100644 --- a/drivers/wireless/bluetooth/bt_uart_shim.c +++ b/drivers/wireless/bluetooth/bt_uart_shim.c @@ -58,7 +58,6 @@ #include #include #include -#include #include #include @@ -431,7 +430,7 @@ static int hcicollecttask(int argc, FAR char **argv) * ****************************************************************************/ -FAR void *bt_uart_shim_getdevice(FAR char *path) +FAR struct btuart_lowerhalf_s *bt_uart_shim_getdevice(FAR const char *path) { FAR struct hciuart_state_s *s; int ret; @@ -474,5 +473,5 @@ FAR void *bt_uart_shim_getdevice(FAR char *path) CONFIG_BLUETOOTH_TXCONN_PRIORITY, 1024, hcicollecttask, NULL); - return g_n; + return (FAR struct btuart_lowerhalf_s *)g_n; } diff --git a/include/nuttx/wireless/bluetooth/bt_uart_shim.h b/include/nuttx/wireless/bluetooth/bt_uart_shim.h index dcf94d2730..536335fef2 100644 --- a/include/nuttx/wireless/bluetooth/bt_uart_shim.h +++ b/include/nuttx/wireless/bluetooth/bt_uart_shim.h @@ -41,8 +41,7 @@ * Included Files ****************************************************************************/ -#include -#include +#include #ifdef CONFIG_BLUETOOTH_UART_SHIM @@ -50,7 +49,7 @@ * Public Function Prototypes ****************************************************************************/ -FAR void *bt_uart_shim_getdevice(FAR char *path); +FAR struct btuart_lowerhalf_s *bt_uart_shim_getdevice(FAR const char *path); #endif #endif