platform/x86: int3472: discrete: Use FIELD_GET() on the GPIO _DSM return value
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Jun 2023 17:21:31 +0000 (19:21 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Jun 2023 10:39:34 +0000 (12:39 +0200)
commit45eaf2e2b8bc9bf4beaa30918a25690ae105a913
tree87ed127e88b2634035dff89a9a9b87de6ce2c523
parentebeb3fff9cd197a8890733e0af4eb06d8114cdff
platform/x86: int3472: discrete: Use FIELD_GET() on the GPIO _DSM return value

Add defines for the various fields encoded in the GPIO _DSM integer
return value and then use FIELD_GET() to get field values.

Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230616172132.37859-6-hdegoede@redhat.com
drivers/platform/x86/intel/int3472/discrete.c