]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit477b32a6fd67f58d92fe4529fa50f19354931a66
tree88772b3adea3b0725dab0aa921bcbd33c79b2503
parent8ada295e73bc9503970fb9bdf43bc9a84c2b65ba
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