platform/x86: think-lmi: Split current_value to reflect only the value
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 22 Jun 2021 20:07:55 +0000 (15:07 -0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 28 Jun 2021 09:34:45 +0000 (11:34 +0200)
commit0fdf10e5fc964c315cf131a2eaab9cc531a9f40f
treed30cbbd7977b08037aa8fde717e4f099b579a371
parent1bcad8e510b27ad843315ab2c27ccf459e3acded
platform/x86: think-lmi: Split current_value to reflect only the value

Currently attributes will show things like:
`BootOrderLock,Disable`
rather than just
`Disable`.

Of course this works, but the attribute is intended to be read by
userspace tools and not require further processing.  That is a userspace
tool can display a drop down of `possible_values` and `current_value` is
one of them from the list.

This also aligns `think-lmi` with how `dell-wmi-sysman` works.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20210622200755.12379-3-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/think-lmi.c