diff options
author | Maximilian Luz <[email protected]> | 2023-03-04 20:46:09 +0100 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-03-16 14:43:11 +0100 |
commit | b58a444d7f28ea59fd37a4615e6be86f5d45c880 (patch) | |
tree | d3a76d2ccaf926807bf19b54f2c92e422d7b3cec /drivers/platform/surface/surface_aggregator_registry.c | |
parent | 94227b9c88f3df8ac3025611719cebd125b5981a (diff) |
platform/surface: aggregator_tabletsw: Properly handle different posture source IDs
The device posture subsystem (POS) can provide different posture
sources. Different sources can provide different posture states and
sources can be identified by their ID.
For example, screen posture of the Surface Laptop Studio (SLS), which is
currently the only supported source, uses a source ID of 0x03. The
Surface Pro 9 uses the same subsystem for its Type-Cover, however,
provides different states for that under the ID 0x00.
To eventually support the Surface Pro 9 and potential future devices, we
need to properly disambiguate between source IDs. Therefore, add the
source ID to the state we carry and determine the tablet-mode state (as
well as state names) based on that.
Signed-off-by: Maximilian Luz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_registry.c')
0 files changed, 0 insertions, 0 deletions