i2c: i801: Use match_string() helper to simplify the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jun 2019 11:36:24 +0000 (14:36 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 21 Jun 2019 21:09:24 +0000 (23:09 +0200)
commitaf668d6518dcf7106bf4eef1641d8143842dc9cc
tree88772b3adea3b0725dab0aa921bcbd33c79b2503
parentc9913ac42135cf7f1c8986bcb175c5a7dda126e6
i2c: i801: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c