Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Surface System Aggregator Module bus and device integration.
0004  *
0005  * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
0006  */
0007 
0008 #ifndef _SURFACE_AGGREGATOR_BUS_H
0009 #define _SURFACE_AGGREGATOR_BUS_H
0010 
0011 #include <linux/surface_aggregator/controller.h>
0012 
0013 #ifdef CONFIG_SURFACE_AGGREGATOR_BUS
0014 
0015 int ssam_bus_register(void);
0016 void ssam_bus_unregister(void);
0017 
0018 #else /* CONFIG_SURFACE_AGGREGATOR_BUS */
0019 
0020 static inline int ssam_bus_register(void) { return 0; }
0021 static inline void ssam_bus_unregister(void) {}
0022 
0023 #endif /* CONFIG_SURFACE_AGGREGATOR_BUS */
0024 #endif /* _SURFACE_AGGREGATOR_BUS_H */