forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branches 'acpi-battery', 'acpi-doc' and 'acpi-pmic'
* acpi-battery: Revert "ACPI: battery: Add the ThinkPad "Not Charging" quirk" ACPI: battery: do not export degraded capacity values over 100 ACPI: battery: make function __battery_hook_unregister() static ACPI: battery: Add the ThinkPad "Not Charging" quirk thinkpad_acpi: Add support for battery thresholds power: add to_power_supply macro to the API battery: Add the battery hooking API * acpi-doc: ACPI: sysfs: Update device object sysfs documentation * acpi-pmic: ACPI / PMIC: Replace license boilerplate with SPDX license identifier
- Loading branch information
Showing
13 changed files
with
624 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,40 @@ Description: | |
Writing 1 to this attribute will trigger hot removal of | ||
this device object. This file exists for every device | ||
object that has _EJ0 method. | ||
|
||
What: /sys/bus/acpi/devices/.../status | ||
Date: Jan, 2014 | ||
Contact: Rafael J. Wysocki <[email protected]> | ||
Description: | ||
(RO) Returns the ACPI device status: enabled, disabled or | ||
functioning or present, if the method _STA is present. | ||
|
||
The return value is a decimal integer representing the device's | ||
status bitmap: | ||
|
||
Bit [0] – Set if the device is present. | ||
Bit [1] – Set if the device is enabled and decoding its | ||
resources. | ||
Bit [2] – Set if the device should be shown in the UI. | ||
Bit [3] – Set if the device is functioning properly (cleared if | ||
device failed its diagnostics). | ||
Bit [4] – Set if the battery is present. | ||
Bits [31:5] – Reserved (must be cleared) | ||
|
||
If bit [0] is clear, then bit 1 must also be clear (a device | ||
that is not present cannot be enabled). | ||
|
||
Bit 0 can be clear (not present) with bit [3] set (device is | ||
functional). This case is used to indicate a valid device for | ||
which no device driver should be loaded. | ||
|
||
More special cases are covered in the ACPI specification. | ||
|
||
What: /sys/bus/acpi/devices/.../hrv | ||
Date: Apr, 2016 | ||
Contact: Rafael J. Wysocki <[email protected]> | ||
Description: | ||
(RO) Allows users to read the hardware version of non-PCI | ||
hardware, if the _HRV control method is present. It is mostly | ||
useful for non-PCI devices because lspci can list the hardware | ||
version for PCI devices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* TI TPS68470 PMIC operation region driver | ||
* | ||
* Copyright (C) 2017 Intel Corporation. All rights reserved. | ||
* | ||
* Author: Rajmohan Mani <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version | ||
* 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
* kind, whether express or implied; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* Based on drivers/acpi/pmic/intel_pmic* drivers | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.