state: remove unused arguments from state_new_from_node()
Other than in barebox the offset and size of a state's backend device do not
necessarily equal zero in Linux userspace (EEPROMs & block devices). So we have
to consider that and differentiate between both usecases here while porting the
following barebox commit and removing the now no longer used noop definition of
of_find_path_by_node():

| commit a66a8d7
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date:   Tue Feb 20 12:21:00 2018 +0100
|
|     state: remove unused arguments from state_new_from_node()
|
|     state_new_from_node() has arguments describing the backend path. These
|     are never used in barebox, the backend path is always derived from the
|     device nodes backend description. Remove these arguments.
|
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
[rhi: fixed tabs vs. spaces indentation in state_new_from_node()]
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent 8dcc827 commit 498e2d84d0867b9ba6dcf5b7613ca9983c673b33
@Ulrich Ölmann Ulrich Ölmann authored on 18 Dec 2018
Roland Hieber committed on 7 Jan 2019
Showing 4 changed files
View
src/barebox-state.c
View
src/barebox-state/state.c
View
src/dt/dt.h
View
src/state.h