Lines Matching +full:tablet +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
2 // Driver to detect Tablet Mode for ChromeOS convertible.
30 status = acpi_evaluate_integer(adev->handle, "TBMC", NULL, &state); in chromeos_tbmc_query_switch()
32 return -ENODEV; in chromeos_tbmc_query_switch()
45 return chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_resume()
50 acpi_pm_wakeup_event(&adev->dev); in chromeos_tbmc_notify()
53 chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_notify()
56 dev_err(&adev->dev, "Unexpected event: 0x%08X\n", event); in chromeos_tbmc_notify()
70 struct device *dev = &adev->dev; in chromeos_tbmc_add()
75 return -ENOMEM; in chromeos_tbmc_add()
77 idev->name = "Tablet Mode Switch"; in chromeos_tbmc_add()
78 idev->phys = acpi_device_hid(adev); in chromeos_tbmc_add()
80 idev->id.bustype = BUS_HOST; in chromeos_tbmc_add()
81 idev->id.version = 1; in chromeos_tbmc_add()
82 idev->id.product = 0; in chromeos_tbmc_add()
83 idev->open = chromeos_tbmc_open; in chromeos_tbmc_add()
86 adev->driver_data = idev; in chromeos_tbmc_add()
121 MODULE_DESCRIPTION("ChromeOS ACPI tablet switch driver");