leds: sun50i-a100: Use match_string() helper to simplify the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Apr 2024 15:25:15 +0000 (18:25 +0300)
committerLee Jones <lee@kernel.org>
Thu, 2 May 2024 17:06:30 +0000 (18:06 +0100)
commit3b29c7b9f701e5afbe6b536eb2744acb25cf5bfd
tree5c054f8b9c97e86c19b51b3076011ec21ec3a5e4
parent974afccd37947a6951a052ef8118c961e57eaf7b
leds: sun50i-a100: 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: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20240426152515.872917-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-sun50i-a100.c