]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel-vbtn: Use acpi_evaluate_integer()
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 May 2020 18:29:47 +0000 (20:29 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 May 2020 17:19:37 +0000 (20:19 +0300)
commitfe659f6bf6b18c83fc9588d5e8f6df4bd9f44f83
treeff45db025e7738e52340eb13803af8e7deb2c6b7
parent6354bcce5f9b88ad358df7313dfef61ea308289b
platform/x86: intel-vbtn: Use acpi_evaluate_integer()

Use acpi_evaluate_integer() instead of open-coding it.

This is a preparation patch for adding a intel_vbtn_has_switches()
helper function.

Fixes: 7070e94741f2 ("platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel-vbtn.c