bcm43xxx: fixed several warnings:

warning: ISO C forbids 'return' with expression, in function returning void [-Wpedantic]
warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
warning: too many arguments for format [-Wformat-extra-args]
This commit is contained in:
Alexander Lunev 2022-02-03 06:53:01 +03:00 committed by Alan Carvalho de Assis
parent 5669ac8e43
commit a597e66070
4 changed files with 6 additions and 6 deletions

View File

@ -351,7 +351,7 @@ int bcmf_driver_download_clm(FAR struct bcmf_dev_s *priv)
}
else
{
wlinfo("Download %d bytes @ 0x%08x\n", datalen, srcbuff);
wlinfo("Download %d bytes @ %p\n", datalen, srcbuff);
}
/* Divide CLM blob into chunks */

View File

@ -278,7 +278,7 @@ int bcmf_probe(FAR struct bcmf_sdio_dev_s *sbus)
}
else
{
wlwarn("High-Speed mode is not supported by the chip!\n", value);
wlwarn("High-Speed mode is not supported by the chip!\n");
}
#endif

View File

@ -148,8 +148,8 @@ int bcmf_bus_sdio_initialize(FAR struct bcmf_dev_s *priv,
*/
int bcmf_transfer_bytes(FAR struct bcmf_sdio_dev_s *sbus, bool write,
uint8_t function, uint32_t address,
uint8_t *buf, unsigned int len);
uint8_t function, uint32_t address,
uint8_t *buf, unsigned int len);
int bcmf_read_reg(FAR struct bcmf_sdio_dev_s *sbus, uint8_t function,
uint32_t address, uint8_t *reg);

View File

@ -522,9 +522,9 @@ struct bcmf_frame_s *bcmf_sdpcm_alloc_frame(FAR struct bcmf_dev_s *priv,
}
void bcmf_sdpcm_free_frame(FAR struct bcmf_dev_s *priv,
struct bcmf_frame_s *frame)
struct bcmf_frame_s *frame)
{
return bcmf_sdio_free_frame(priv, (struct bcmf_sdio_frame *)frame);
bcmf_sdio_free_frame(priv, (struct bcmf_sdio_frame *)frame);
}
struct bcmf_frame_s *bcmf_sdpcm_get_rx_frame(FAR struct bcmf_dev_s *priv)