flash: factor out adjusting of Flash address to the end of sector
authorBartlomiej Sieka <tur@semihalf.com>
Wed, 1 Oct 2008 13:26:27 +0000 (15:26 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:00 +0000 (21:54 +0200)
commit3f0cf51dabacc2724731c5079a60ea989103bb8f
tree4dc6613e45d329ac3c307aa60c6886008e3c1bfb
parente83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5
flash: factor out adjusting of Flash address to the end of sector

The upcoming automatic update feature needs the ability to adjust an
address within Flash to the end of its respective sector. Factor out
this functionality to a new function flash_sect_roundb().

Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Stefan Roese <sr@denx.de>
common/cmd_flash.c
include/flash.h