Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / platform / surface / aggregator / bus.h
blob5b4dbf21906cd1e3655ebe64a938f9c8253511e8
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Surface System Aggregator Module bus and device integration.
5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
6 */
8 #ifndef _SURFACE_AGGREGATOR_BUS_H
9 #define _SURFACE_AGGREGATOR_BUS_H
11 #include <linux/surface_aggregator/controller.h>
13 #ifdef CONFIG_SURFACE_AGGREGATOR_BUS
15 int ssam_bus_register(void);
16 void ssam_bus_unregister(void);
18 #else /* CONFIG_SURFACE_AGGREGATOR_BUS */
20 static inline int ssam_bus_register(void) { return 0; }
21 static inline void ssam_bus_unregister(void) {}
23 #endif /* CONFIG_SURFACE_AGGREGATOR_BUS */
24 #endif /* _SURFACE_AGGREGATOR_BUS_H */