net: ipa: move and redefine ipa_version_valid()
authorAlex Elder <elder@linaro.org>
Sat, 10 Sep 2022 01:11:28 +0000 (20:11 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 14:45:47 +0000 (07:45 -0700)
commit8b3cb084b23e0a8ab7ce748c7f27ba828b74cde9
tree86c475f7b87faef2a56e302dad69e39f54d1e50a
parentbb788de30a74facb920448bb129d345eb0294b13
net: ipa: move and redefine ipa_version_valid()

Move the definition of ipa_version_valid(), making it a static
inline function defined together with the enumerated type in
"ipa_version.h".  Define a new count value in the type.

Rename the function to be ipa_version_supported(), and have it
return true only if the IPA version supplied is explicitly supported
by the driver.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_main.c
drivers/net/ipa/ipa_version.h