ACPI: utils: Add acpi_evaluate_reg() helper
authorHans de Goede <hdegoede@redhat.com>
Thu, 7 May 2020 10:49:16 +0000 (12:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 May 2020 09:40:25 +0000 (11:40 +0200)
commit132565d8ec096a5a043f96092cfa4821d970d268
tree921eb3576cf482019f614a55c9ea93a03b5439b8
parent0e698dfa282211e414076f9dc7e83c1c288314fd
ACPI: utils: Add acpi_evaluate_reg() helper

With a recent fix to the pinctrl-cherryview driver we now have
2 drivers open-coding the parameter building / passing for calling
_REG on an ACPI handle.

Add a helper for this, so that these 2 drivers can be converted to this
helper.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c
include/acpi/acpi_bus.h