summaryrefslogtreecommitdiff
path: root/include/linux/surface_aggregator/controller.h
diff options
context:
space:
mode:
authorMaximilian Luz <luzmaximilian@gmail.com>2022-05-27 04:34:36 +0200
committerHans de Goede <hdegoede@redhat.com>2022-06-13 17:25:07 +0200
commit0eb6584068642767baab17c2e4385a6b9c029caa (patch)
tree58cecb639eab2c92f7838041f7088cc8ccd1ee2a /include/linux/surface_aggregator/controller.h
parent50d88b1d1e7970ed900080bab4fe3f1477908d46 (diff)
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 <luzmaximilian@gmail.com> Link: https://lore.kernel.org/r/20220527023447.2460025-2-luzmaximilian@gmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/surface_aggregator/controller.h')
0 files changed, 0 insertions, 0 deletions