state: describe backend with phandle
We used to describe the backend with a combination of a nodepath
and partname:<name>. This is cumbersome and error prone to parse.
Instead, describe the backend with a phandle that directly points
to the partition. The resulting code is easier to read and the
devicetrees are easier to understand. Tested with both mtd and
EEPROM device, both with partitions with an offset != 0.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1b60cd5 commit 53df62ae2fe30b4fb05124087ec4dcab3312e80c
@Sascha Hauer Sascha Hauer authored on 3 Jun 2014
Showing 4 changed files
View
src/dt/dt.h
View
src/libdt.c
View
src/libdt.sym
View
src/state.c