]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: think-lmi: use correct possible_values delimiters
authorMark Pearson <mpearson-lenovo@squebb.ca>
Mon, 20 Mar 2023 00:32:19 +0000 (20:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:43 +0000 (12:10 +0200)
commit3991efd0c1aa989a23c4b922c7d36a31b6aab83c
treefb62cd70bae1735460d91d1ce4ff08d0b0f2bcdd
parent6c69f1ab7bdc97b2df37a9d3f7bbdb45ddbeab17
platform/x86: think-lmi: use correct possible_values delimiters

[ Upstream commit 45e21289bfc6e257885514790a8a8887da822d40 ]

firmware-attributes class requires that possible values are delimited
using ';' but the Lenovo firmware uses ',' instead.
Parse string and replace where appropriate.

Suggested-by: Thomas Weißschuh <linux@weissschuh.net>
Fixes: a40cd7ef22fb ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20230320003221.561750-2-mpearson-lenovo@squebb.ca
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/think-lmi.c