@@ -31,19 +31,19 @@ enum ironside_dvfs_oppoint {
3131 */
3232
3333/** The requested DVFS oppoint is not allowed. */
34- #define IRONSIDE_DVFS_ERROR_WRONG_OPPOINT (1)
34+ #define IRONSIDE_DVFS_ERROR_WRONG_OPPOINT (1)
3535/** Waiting for mutex lock timed out, or hardware is busy. */
36- #define IRONSIDE_DVFS_ERROR_BUSY (2)
36+ #define IRONSIDE_DVFS_ERROR_BUSY (2)
3737/** There is configuration error in the DVFS service. */
38- #define IRONSIDE_DVFS_ERROR_OPPOINT_DATA (3)
38+ #define IRONSIDE_DVFS_ERROR_OPPOINT_DATA (3)
3939/** 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)
4141/** The requested DVFS oppoint is already set, no change needed. */
4242#define IRONSIDE_DVFS_ERROR_NO_CHANGE_NEEDED (5)
4343/** The operation timed out, possibly due to a hardware issue. */
44- #define IRONSIDE_DVFS_ERROR_TIMEOUT (6)
44+ #define IRONSIDE_DVFS_ERROR_TIMEOUT (6)
4545/** 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)
4747
4848/**
4949 * @}
@@ -80,8 +80,7 @@ int ironside_dvfs_change_oppoint(enum ironside_dvfs_oppoint dvfs_oppoint);
8080 */
8181static inline bool ironside_dvfs_is_oppoint_valid (enum ironside_dvfs_oppoint dvfs_oppoint )
8282{
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 &&
8584 dvfs_oppoint != IRONSIDE_DVFS_OPP_LOW ) {
8685 return false;
8786 }
0 commit comments