diff options
author | Ley Foon Tan <lftan@altera.com> | 2016-08-25 11:11:59 +0300 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2016-10-06 13:19:16 +0300 |
commit | 476080a79367b950cb860ccf8a3a53fd24f6cccc (patch) | |
tree | e2fcb36662977631ccf9c40cd0eb33f39df7780e /arch/nios2/include | |
parent | c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 (diff) | |
download | linux-476080a79367b950cb860ccf8a3a53fd24f6cccc.tar.xz |
nios2: use of_property_read_bool
Use of_property_read_bool instead of open-coding it as fpcu_has.
Convert the members of struct cpuinfo from u32 to bool accordingly as
they are only used as boolean anyhow.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/include')
-rw-r--r-- | arch/nios2/include/asm/cpuinfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/nios2/include/asm/cpuinfo.h b/arch/nios2/include/asm/cpuinfo.h index e88fcae464d9..348bb228fec9 100644 --- a/arch/nios2/include/asm/cpuinfo.h +++ b/arch/nios2/include/asm/cpuinfo.h @@ -25,10 +25,10 @@ struct cpuinfo { /* Core CPU configuration */ char cpu_impl[12]; u32 cpu_clock_freq; - u32 mmu; - u32 has_div; - u32 has_mul; - u32 has_mulx; + bool mmu; + bool has_div; + bool has_mul; + bool has_mulx; /* CPU caches */ u32 icache_line_size; |