drm/nouveau/kms/nv04-nv4x: Use match_string() helper to simplify the code
authorYueHaibing <yuehaibing@huawei.com>
Mon, 30 Dec 2019 02:46:28 +0000 (10:46 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Jan 2020 00:49:59 +0000 (10:49 +1000)
commit2574c809d7c0f07f11fdefd9894e51e126ee1d66
treea881d434fac01175a3dc63edeaffcd89f8bd4b41
parentd7ca5ddf585e20e879e3ebe3e5be0a0477b700b8
drm/nouveau/kms/nv04-nv4x: 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>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/tvnv17.c