We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd50b3 commit 868adf8Copy full SHA for 868adf8
drivers/platform/x86/intel/vbtn.c
@@ -258,18 +258,14 @@ static const struct dmi_system_id dmi_switches_allow_list[] = {
258
259
static bool intel_vbtn_has_switches(acpi_handle handle, bool dual_accel)
260
{
261
- unsigned long long vgbs;
262
- acpi_status status;
263
-
264
/* See dual_accel_detect.h for more info */
265
if (dual_accel)
266
return false;
267
268
if (!dmi_check_system(dmi_switches_allow_list))
269
270
271
- status = acpi_evaluate_integer(handle, "VGBS", NULL, &vgbs);
272
- return ACPI_SUCCESS(status);
+ return acpi_has_method(handle, "VGBS");
273
}
274
275
static int intel_vbtn_probe(struct platform_device *device)
0 commit comments