Skip to contentSkip to conversation

of: Move OF property and graph API from base.c to property.c

PATCH Superseded Sakari Ailus 1 participant 1 message Mar 29, 2017

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 of: Move OF property and graph API from base.c to property.c

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.

---
since v1:

- Improved commit message.

- Tell that OF property and graph interface functions are located in the newly created property.c, and that the origin of the functions in property.c is base.c.

 drivers/of/Makefile   |   2 +-
 drivers/of/base.c     | 702 -----------------------------------------------
 drivers/of/property.c | 732 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 733 insertions(+), 703 deletions(-)
 create mode 100644 drivers/of/property.c
drivers/of/Makefile +1 -1
index d7efd9d..97dc01c 100644
@@ -1,4 +1,4 @@
-obj-y = base.o device.o platform.o
+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
drivers/of/base.c +0 -702

717 lines not on this page · raw message

drivers/of/property.c new file +732 -0

732 lines not on this page · raw message

Signature · 1 line
2.7.4