mbox series

[0/3] of: root #{size,address}-cells clean-ups

Message ID 20180830190523.31474-1-robh@kernel.org
Headers show
Series of: root #{size,address}-cells clean-ups | expand

Message

Rob Herring Aug. 30, 2018, 7:05 p.m. UTC
This is a small restructuring and clean-up of handling root node
#size-cells and #address-cells (or lack of). As only Sparc needs a 
different default value and only for #address-cells, we can handle that 
locally and remove one more dependency on asm/prom.h.

Rob

Rob Herring (3):
  of/fdt: Scan the root node properties earlier
  of/fdt: avoid re-parsing '#{address,size}-cells' in
    of_fdt_limit_memory
  of: make default address and size cells sizes private

 arch/sparc/include/asm/prom.h |  3 ---
 drivers/of/fdt.c              | 30 +++++-------------------------
 drivers/of/of_private.h       |  8 ++++++++
 include/linux/of.h            |  6 ------
 4 files changed, 13 insertions(+), 34 deletions(-)

Comments

Frank Rowand Sept. 5, 2018, 1:56 a.m. UTC | #1
On 08/30/18 12:05, Rob Herring wrote:
> This is a small restructuring and clean-up of handling root node
> #size-cells and #address-cells (or lack of). As only Sparc needs a 
> different default value and only for #address-cells, we can handle that 
> locally and remove one more dependency on asm/prom.h.
> 
> Rob
> 
> Rob Herring (3):
>   of/fdt: Scan the root node properties earlier
>   of/fdt: avoid re-parsing '#{address,size}-cells' in
>     of_fdt_limit_memory
>   of: make default address and size cells sizes private
> 
>  arch/sparc/include/asm/prom.h |  3 ---
>  drivers/of/fdt.c              | 30 +++++-------------------------
>  drivers/of/of_private.h       |  8 ++++++++
>  include/linux/of.h            |  6 ------
>  4 files changed, 13 insertions(+), 34 deletions(-)
> 

Nice cleanup!

-Frank