mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-08 14:13:05 +09:00
base.c contains both core OF functions and increasingly other
functionality such as accessing properties and graphs, including
convenience functions. In the near future this would also include OF
specific implementation of the fwnode property and graph APIs.
Create driver/of/property.c to contain procedures for accessing and
interpreting device tree properties. The procedures are moved from
drivers/of/base.c, with no changes other than copying only the includes
required by the moved procedures.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit 1df09bc66f)
Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Conflicts:
drivers/of/base.c
drivers/of/property.c
To align the new property.c file better with upstream, add
of_property_read_u64_index() and of_graph_get_remote_node() which we didn't
already have in base.c
To avoid ripple effects of a large constification upstream which we don't
have and don't want for now, deconstify the following three functions:
of_property_read_string(); of_property_read_string();
of_property_read_string_helper()
BUG=b:64133998
TEST=media device topology shows subdevs registered successfully
TEST=no camera regression
Change-Id: I1d95f43651f277f42cd2c6d9a6a94916c503a278
Reviewed-on: https://chromium-review.googlesource.com/693675
Commit-Ready: Tomasz Figa <tfiga@chromium.org>
Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
19 lines
665 B
Makefile
19 lines
665 B
Makefile
obj-y = base.o device.o platform.o property.o
|
|
obj-$(CONFIG_OF_DYNAMIC) += dynamic.o
|
|
obj-$(CONFIG_OF_FLATTREE) += fdt.o
|
|
obj-$(CONFIG_OF_EARLY_FLATTREE) += fdt_address.o
|
|
obj-$(CONFIG_OF_PROMTREE) += pdt.o
|
|
obj-$(CONFIG_OF_ADDRESS) += address.o
|
|
obj-$(CONFIG_OF_IRQ) += irq.o
|
|
obj-$(CONFIG_OF_NET) += of_net.o
|
|
obj-$(CONFIG_OF_UNITTEST) += unittest.o
|
|
obj-$(CONFIG_OF_MDIO) += of_mdio.o
|
|
obj-$(CONFIG_OF_PCI) += of_pci.o
|
|
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
|
|
obj-$(CONFIG_OF_MTD) += of_mtd.o
|
|
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o
|
|
obj-$(CONFIG_OF_RESOLVE) += resolver.o
|
|
obj-$(CONFIG_OF_OVERLAY) += overlay.o
|
|
|
|
obj-$(CONFIG_OF_UNITTEST) += unittest-data/
|