platform/x86: intel_skl_int3472: Use ACPI GPIO resource directly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Jun 2021 12:55:12 +0000 (15:55 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 22 Jun 2021 09:15:03 +0000 (11:15 +0200)
commit719941878bc95af5e1368eca56fd4dcbd3633f10
treef044f449defcfd7684abefec8620e75c67dafc90
parenta438dd11081a6ff1b8aa13cc96f07e2ca2f33a36
platform/x86: intel_skl_int3472: Use ACPI GPIO resource directly

When we call acpi_gpio_get_io_resource(), the output will be
the pointer to the ACPI GPIO resource. Use it directly instead of
dereferencing the generic resource.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Daniel Scally <djrscally@gmail.com>
Tested-by: Daniel Scally <djrscally@gmail.com>
Link: https://lore.kernel.org/r/20210618125516.53510-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel-int3472/intel_skl_int3472_clk_and_regulator.c
drivers/platform/x86/intel-int3472/intel_skl_int3472_common.h
drivers/platform/x86/intel-int3472/intel_skl_int3472_discrete.c