state: backend_raw: properly align write and erase size
This patch makes it easier to share the code with linux, on Linux the ease and
write size have to be aligned. Use stride (which is already aligned to erase
block size) during erase, align size_full to writesize and use it while
writing.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 20fc562 commit 8fba554f888493103d104c1acceca449a0a105ed
@Marc Kleine-Budde Marc Kleine-Budde authored on 26 May 2015
Sascha Hauer committed on 26 May 2015
Showing 1 changed file
View
common/state.c