diff options
| author | Maximilian Luz <[email protected]> | 2022-05-27 02:34:36 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2022-06-13 15:25:07 +0000 |
| commit | 0eb6584068642767baab17c2e4385a6b9c029caa (patch) | |
| tree | 58cecb639eab2c92f7838041f7088cc8ccd1ee2a /drivers/platform/surface/aggregator/controller.c | |
| parent | platform/x86: system76_acpi: Use dev_get_drvdata (diff) | |
| download | kernel-0eb6584068642767baab17c2e4385a6b9c029caa.tar.gz kernel-0eb6584068642767baab17c2e4385a6b9c029caa.zip | |
platform/surface: aggregator: Allow is_ssam_device() to be used when CONFIG_SURFACE_AGGREGATOR_BUS is disabled
In SSAM subsystem drivers that handle both ACPI and SSAM-native client
devices, we may want to check whether we have a SSAM (native) client
device. Further, we may want to do this even when instantiation thereof
cannot happen due to CONFIG_SURFACE_AGGREGATOR_BUS=n. Currently, doing
so causes an error due to an undefined reference error due to
ssam_device_type being placed in the bus source unit.
Therefore, if CONFIG_SURFACE_AGGREGATOR_BUS is not defined, simply let
is_ssam_device() return false to prevent this error.
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/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions
