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)
commit29de523a6270a308d12d21f4fecf52dac491e226
treed1938469dc4678f05020d7ef0c205dca72079afd
parent8cf509345096340416708d998bbb71a27c883880
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