soc: aspeed: uart-routing: Use __sysfs_match_string
authorZev Weiss <zev@bewilderbeest.net>
Thu, 10 Aug 2023 12:29:41 +0000 (21:59 +0930)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 Aug 2023 10:12:34 +0000 (12:12 +0200)
commite4ad279ae345413d900d791f2f618d0a1cd0d791
tree430efbb4d810f1d586cd4593345a05851f44f81f
parent42ff49a1967af71772b264009659ce181f7d2d2a
soc: aspeed: uart-routing: Use __sysfs_match_string

The existing use of match_string() caused it to reject 'echo foo' due
to the implicitly appended newline, which was somewhat ergonomically
awkward and inconsistent with typical sysfs behavior.  Using the
__sysfs_* variant instead provides more convenient and consistent
linefeed-agnostic behavior.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Fixes: c6807970c3bc ("soc: aspeed: Add UART routing support")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20230628083735.19946-2-zev@bewilderbeest.net
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20230810122941.231085-1-joel@jms.id.au
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/aspeed/aspeed-uart-routing.c