mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
bt_uart_shim: Correct the prototype of bt_uart_shim_getdevice
1.Add const to the path argument 2.Return the explicit type(struct btuart_lowerhalf_s *) Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
d85cf99a65
commit
aec3220fae
2 changed files with 4 additions and 6 deletions
|
|
@ -41,8 +41,7 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/compiler.h>
|
||||
#include <nuttx/wireless/bluetooth/bt_uart.h>
|
||||
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue