diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-07-29 17:05:03 +0100 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2015-08-13 23:48:07 +0100 |
commit | 9d070b9928b874700395ca48780ce2c88b70e588 (patch) | |
tree | b5aa67728ea296bf8d2e39ce15129cc8228816cb /services/std_svc/psci/psci_off.c | |
parent | 58523c076a4bd766fccd207c493cf1b918fda9db (diff) |
PSCI: Rework generic code to conform to coding guidelines
This patch reworks the PSCI generic implementation to conform to ARM
Trusted Firmware coding guidelines as described here:
https://github.com/ARM-software/arm-trusted-firmware/wiki
This patch also reviews the use of signed data types within PSCI
Generic code and replaces them with their unsigned counterparts wherever
they are not appropriate. The PSCI_INVALID_DATA macro which was defined
to -1 is now replaced with PSCI_INVALID_PWR_LVL macro which is defined
to PLAT_MAX_PWR_LVL + 1.
Change-Id: Iaea422d0e46fc314e0b173c2b4c16e0d56b2515a
Diffstat (limited to 'services/std_svc/psci/psci_off.c')
-rw-r--r-- | services/std_svc/psci/psci_off.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/std_svc/psci/psci_off.c b/services/std_svc/psci/psci_off.c index 28fa52c0..f565ffb7 100644 --- a/services/std_svc/psci/psci_off.c +++ b/services/std_svc/psci/psci_off.c @@ -60,7 +60,7 @@ static void psci_set_power_off_state(psci_power_state_t *state_info) * interconnect level if the cpu is the last in the cluster and also the * program the power controller. ******************************************************************************/ -int psci_do_cpu_off(int end_pwrlvl) +int psci_do_cpu_off(unsigned int end_pwrlvl) { int rc, idx = plat_my_core_pos(); psci_power_state_t state_info; |