]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: fix coherency of hif_scan() prototype
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 29 May 2020 12:12:56 +0000 (14:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jun 2020 19:22:51 +0000 (21:22 +0200)
commitf687fe4b58936d4252710c41f5a340797125e1b5
treed1938469dc4678f05020d7ef0c205dca72079afd
parent507e68fab6e2911e9f33593b776984ee4f01435a
staging: wfx: fix coherency of hif_scan() prototype

The function hif_scan() return the timeout for the completion of the
scan request. It is the only function from hif_tx.c that return another
thing than just an error code. This behavior is not coherent with the
rest of file. Worse, if value returned is positive, the caller can't
make say if it is a timeout or the value returned by the hardware.

Uniformize API with other HIF functions, only return the error code and
pass timeout with parameters.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200529121256.1045521-1-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_tx.c
drivers/staging/wfx/hif_tx.h
drivers/staging/wfx/scan.c