]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28ea99f4d8d7015e089039e883e6c2e7ad33e227
treea881d434fac01175a3dc63edeaffcd89f8bd4b41
parentead90bce53d7d8f82d3c60640e6b46d83294f31b
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