OSDN Git Service

platform/surface: aggregator_registry: Add battery subsystem devices
authorMaximilian Luz <luzmaximilian@gmail.com>
Fri, 12 Feb 2021 11:54:36 +0000 (12:54 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 6 Mar 2021 09:23:26 +0000 (10:23 +0100)
commit17590927f7684b297a64ac64b332dd589d64d5a5
treebc46b7b8b1972fd7444877d55415abc862215a65
parent797e78564634275ed4fe6b3f586c4b96eb1d86bc
platform/surface: aggregator_registry: Add battery subsystem devices

Add battery subsystem (TC=0x02) devices (battery and AC) to the SSAM
device registry. These devices need to be registered for 7th-generation
Surface models. On 5th- and 6th-generation models, these devices are
handled via the standard ACPI battery/AC interface, which in turn
accesses the same SSAM interface via the Surface ACPI Notify (SAN)
driver.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210212115439.1525216-4-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_aggregator_registry.c