cc_pm.h (0898782247ae533d1f4e47a06bc5d4870931b284) cc_pm.h (bc88606ac030c4d89976e4dd8f00f31ba1640f2f)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
3
4/* \file cc_pm.h
5 */
6
7#ifndef __CC_POWER_MGR_H__
8#define __CC_POWER_MGR_H__

--- 7 unchanged lines hidden (view full) ---

16extern const struct dev_pm_ops ccree_pm;
17
18int cc_pm_init(struct cc_drvdata *drvdata);
19void cc_pm_go(struct cc_drvdata *drvdata);
20void cc_pm_fini(struct cc_drvdata *drvdata);
21int cc_pm_suspend(struct device *dev);
22int cc_pm_resume(struct device *dev);
23int cc_pm_get(struct device *dev);
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
3
4/* \file cc_pm.h
5 */
6
7#ifndef __CC_POWER_MGR_H__
8#define __CC_POWER_MGR_H__

--- 7 unchanged lines hidden (view full) ---

16extern const struct dev_pm_ops ccree_pm;
17
18int cc_pm_init(struct cc_drvdata *drvdata);
19void cc_pm_go(struct cc_drvdata *drvdata);
20void cc_pm_fini(struct cc_drvdata *drvdata);
21int cc_pm_suspend(struct device *dev);
22int cc_pm_resume(struct device *dev);
23int cc_pm_get(struct device *dev);
24int cc_pm_put_suspend(struct device *dev);
24void cc_pm_put_suspend(struct device *dev);
25bool cc_pm_is_dev_suspended(struct device *dev);
26
27#else
28
29static inline int cc_pm_init(struct cc_drvdata *drvdata)
30{
31 return 0;
32}

--- 12 unchanged lines hidden (view full) ---

45 return 0;
46}
47
48static inline int cc_pm_get(struct device *dev)
49{
50 return 0;
51}
52
25bool cc_pm_is_dev_suspended(struct device *dev);
26
27#else
28
29static inline int cc_pm_init(struct cc_drvdata *drvdata)
30{
31 return 0;
32}

--- 12 unchanged lines hidden (view full) ---

45 return 0;
46}
47
48static inline int cc_pm_get(struct device *dev)
49{
50 return 0;
51}
52
53static inline int cc_pm_put_suspend(struct device *dev)
54{
55 return 0;
56}
53static inline void cc_pm_put_suspend(struct device *dev) {}
57
58static inline bool cc_pm_is_dev_suspended(struct device *dev)
59{
60 /* if PM not supported device is never suspend */
61 return false;
62}
63
64#endif
65
66#endif /*__POWER_MGR_H__*/
54
55static inline bool cc_pm_is_dev_suspended(struct device *dev)
56{
57 /* if PM not supported device is never suspend */
58 return false;
59}
60
61#endif
62
63#endif /*__POWER_MGR_H__*/