xref: /linux/include/soc/amlogic/reset-meson-aux.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SOC_RESET_MESON_AUX_H
3 #define __SOC_RESET_MESON_AUX_H
4 
5 #include <linux/err.h>
6 
7 struct device;
8 struct regmap;
9 
10 #if IS_ENABLED(CONFIG_RESET_MESON_AUX)
11 int devm_meson_rst_aux_register(struct device *dev,
12 				struct regmap *map,
13 				const char *adev_name);
14 #else
15 static inline int devm_meson_rst_aux_register(struct device *dev,
16 					      struct regmap *map,
17 					      const char *adev_name)
18 {
19 	return 0;
20 }
21 #endif
22 
23 #endif /* __SOC_RESET_MESON_AUX_H */
24