net: ipa: have ipa_endpoint_init_ctrl() return previous state
authorAlex Elder <elder@linaro.org>
Mon, 4 May 2020 23:37:11 +0000 (18:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:37:42 +0000 (17:37 -0700)
commit4900bf341d963e9742365cd86bfab78d3d851f39
tree101395c6ace2d0e42f3d9175fca22c08133cf845
parent9c729e7484622b9fb2defa3c640ce141244c0a46
net: ipa: have ipa_endpoint_init_ctrl() return previous state

Change ipa_endpoint_init_ctrl() so it returns the previous state
(whether suspend or delay mode was enabled) rather than indicating
whether the request caused a change in state.  This makes it easier
to understand what's happening where called.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_endpoint.c