diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 20:59:23 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-23 21:10:44 +0300 |
| commit | d4c420689b1872f6fb22f421dfd27704ee94951a (patch) | |
| tree | c3b1921c7bb1035edb7211e4547d3088dac80778 /arch/riscv64/kernel/power.c | |
| parent | 38c7c94bcd131290dcbae110dfb33b0b78c99d90 (diff) | |
| download | kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.tar.gz kmi-d4c420689b1872f6fb22f421dfd27704ee94951a.zip | |
ran clang-format
Diffstat (limited to 'arch/riscv64/kernel/power.c')
| -rw-r--r-- | arch/riscv64/kernel/power.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/riscv64/kernel/power.c b/arch/riscv64/kernel/power.c index 877c001..a4d6568 100644 --- a/arch/riscv64/kernel/power.c +++ b/arch/riscv64/kernel/power.c @@ -2,10 +2,10 @@ #include <sbi.h> /* shutdown reason */ -#define SBI_NO_REASON 0 +#define SBI_NO_REASON 0 /* shutdown type */ -#define SBI_SHUTDOWN 0 +#define SBI_SHUTDOWN 0 #define SBI_COLD_REBOOT 1 #define SBI_WARM_REBOOT 2 @@ -14,17 +14,17 @@ stat_t poweroff(enum poweroff_type type) /* TODO: this only shuts down the cpu itself, but may leave the SOC * active. Should read from fdt poweroff and syscon-poweroff etc */ switch (type) { - case SHUTDOWN: - sbi_system_reset(SBI_SHUTDOWN, SBI_NO_REASON); - return ERR_MISC; + case SHUTDOWN: + sbi_system_reset(SBI_SHUTDOWN, SBI_NO_REASON); + return ERR_MISC; - case COLD_REBOOT: - sbi_system_reset(SBI_COLD_REBOOT, SBI_NO_REASON); - return ERR_MISC; + case COLD_REBOOT: + sbi_system_reset(SBI_COLD_REBOOT, SBI_NO_REASON); + return ERR_MISC; - case WARM_REBOOT: - sbi_system_reset(SBI_WARM_REBOOT, SBI_NO_REASON); - return ERR_MISC; + case WARM_REBOOT: + sbi_system_reset(SBI_WARM_REBOOT, SBI_NO_REASON); + return ERR_MISC; }; return ERR_INVAL; |
