Debian Codegraph @

include/soc/spacemit/ccu.h

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef __SOC_SPACEMIT_CCU_H__
4 #define __SOC_SPACEMIT_CCU_H__
5
6 #include <linux/auxiliary_bus.h>
7 #include <linux/regmap.h>
8
9 /* Auxiliary device used to represent a CCU reset controller */
10 struct spacemit_ccu_adev {
11 struct auxiliary_device adev;
12 struct regmap *regmap;
13 };
14
15 static inline struct spacemit_ccu_adev *
16 to_spacemit_ccu_adev(struct auxiliary_device *adev)
17 {
18 return container_of(adev, struct spacemit_ccu_adev, adev);
19 }
20
21 #endif /* __SOC_SPACEMIT_CCU_H__ */