OSDN Git Service

Staging: gdm724x: use match_string() helper
authorYisheng Xie <xieyisheng1@huawei.com>
Wed, 6 Jun 2018 02:21:11 +0000 (10:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:13 +0000 (09:05 +0200)
commite986b667ea6a4af33e28997f950e4ff196ec8f36
tree61a1a7a11c96aec9cbeed9e96cff5b3ffd8dc973
parent70ce2440e20833d1b08222749cba780291a66e30
Staging: gdm724x: use match_string() helper

match_string() returns the index of an array for a matching string,
which can be used instead of open coded variant.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Quytelda Kahja <quytelda@tamalin.org>
Cc: devel@driverdev.osuosl.org
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_tty.c