staging: wfx: split wfx_get_ps_timeout() from wfx_update_pm()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 26 May 2020 17:18:17 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 08:18:09 +0000 (10:18 +0200)
commit398999dabc8cfc51c7274639cb87e2a316138859
tree24d095fd60df69a9910177ebdd71787fbb7f81fc
parent9a9cd090e996f80ec9edbd8ea58192f25e21ec74
staging: wfx: split wfx_get_ps_timeout() from wfx_update_pm()

In the next commit, we will have to compute the PS timeout without
changing the power save status of the device. This patch introduces
wfx_get_ps_timeout() for that job and make wfx_update_pm() relies on it.

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