staging: hp100: Use match_string() helper to simplify the code
authorYueHaibing <yuehaibing@huawei.com>
Thu, 7 Nov 2019 14:32:23 +0000 (22:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:34:45 +0000 (10:34 +0100)
commita1df271a8652723786923f8314c07ac1e8a35e2f
tree4c856b631a97be8c6089bae93878879c5332f435
parent2a51470f270fb7bad89a1c2a60bfc5386c395f8f
staging: hp100: Use match_string() helper to simplify the code

match_string() returns the array index of a matching string.
Use it instead of the open-coded implementation.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191107143223.44696-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hp/hp100.c