@@ -31,19 +31,19 @@ enum ironside_dvfs_oppoint {
31
31
*/
32
32
33
33
/** The requested DVFS oppoint is not allowed. */
34
- #define IRONSIDE_DVFS_ERROR_WRONG_OPPOINT (1)
34
+ #define IRONSIDE_DVFS_ERROR_WRONG_OPPOINT (1)
35
35
/** Waiting for mutex lock timed out, or hardware is busy. */
36
- #define IRONSIDE_DVFS_ERROR_BUSY (2)
36
+ #define IRONSIDE_DVFS_ERROR_BUSY (2)
37
37
/** There is configuration error in the DVFS service. */
38
- #define IRONSIDE_DVFS_ERROR_OPPOINT_DATA (3)
38
+ #define IRONSIDE_DVFS_ERROR_OPPOINT_DATA (3)
39
39
/** The caller does not have permission to change the DVFS oppoint. */
40
- #define IRONSIDE_DVFS_ERROR_PERMISSION (4)
40
+ #define IRONSIDE_DVFS_ERROR_PERMISSION (4)
41
41
/** The requested DVFS oppoint is already set, no change needed. */
42
42
#define IRONSIDE_DVFS_ERROR_NO_CHANGE_NEEDED (5)
43
43
/** The operation timed out, possibly due to a hardware issue. */
44
- #define IRONSIDE_DVFS_ERROR_TIMEOUT (6)
44
+ #define IRONSIDE_DVFS_ERROR_TIMEOUT (6)
45
45
/** The DVFS oppoint change operation is not allowed in the ISR context. */
46
- #define IRONSIDE_DVFS_ERROR_ISR_NOT_ALLOWED (7)
46
+ #define IRONSIDE_DVFS_ERROR_ISR_NOT_ALLOWED (7)
47
47
48
48
/**
49
49
* @}
@@ -80,8 +80,7 @@ int ironside_dvfs_change_oppoint(enum ironside_dvfs_oppoint dvfs_oppoint);
80
80
*/
81
81
static inline bool ironside_dvfs_is_oppoint_valid (enum ironside_dvfs_oppoint dvfs_oppoint )
82
82
{
83
- if (dvfs_oppoint != IRONSIDE_DVFS_OPP_HIGH &&
84
- dvfs_oppoint != IRONSIDE_DVFS_OPP_MEDLOW &&
83
+ if (dvfs_oppoint != IRONSIDE_DVFS_OPP_HIGH && dvfs_oppoint != IRONSIDE_DVFS_OPP_MEDLOW &&
85
84
dvfs_oppoint != IRONSIDE_DVFS_OPP_LOW ) {
86
85
return false;
87
86
}
0 commit comments