common: state: harmonize code with dt-utils
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 barebox'
and dt-utils' state code differ here.

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ed86bd6 commit 04657b6af779bcf7ac06f36ffa0707f216a88b45
@Ulrich Ölmann Ulrich Ölmann authored on 8 Feb 2019
Sascha Hauer committed on 11 Feb 2019
Showing 1 changed file
View
common/state/state.c