region: add rdev_chain_full()
commitb1ea53d846b865d5fa1332fb2e31d0f2865a7fc0
authorAaron Durbin <adurbin@chromium.org>
Fri, 8 Nov 2019 16:51:15 +0000 (8 09:51 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 11 Nov 2019 10:27:47 +0000 (11 10:27 +0000)
tree203e768091dec397f86f5347fe238a26a382efee
parentf0564a9c44b79e9bfb1001f887348a653f7b7d56
region: add rdev_chain_full()

Instead of open coding an offset of 0 and querying the size of a
region device provide a rdev_chain_full() helper function that
does that for the caller. For the existing users that match this pattern
convert them to using rdev_chain_full().

Change-Id: Ie316790a8a5b16a7f7e22f86f58bd2e633c19450
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36683
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/commonlib/include/commonlib/cbfs.h
src/commonlib/include/commonlib/region.h
src/lib/fmap.c
src/lib/region_file.c