commonlib/region: Rename XLATE region device init macro

This makes the name consistent with other region device init macros.

Change-Id: I248894ba6c85326b615dcb71e8f498bc8be50911
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/15277
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Furquan Shaikh 2016-06-20 11:51:28 -07:00
parent bae6383607
commit f4dac8ac06
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ struct xlate_region_device {
extern const struct region_device_ops xlate_rdev_ops; extern const struct region_device_ops xlate_rdev_ops;
#define XLATE_REGION_INIT(access_dev_, sub_offset_, sub_size_, parent_sz_) \ #define XLATE_REGION_DEV_INIT(access_dev_, sub_offset_, sub_size_, parent_sz_) \
{ \ { \
.access_dev = access_dev_, \ .access_dev = access_dev_, \
.sub_region = { \ .sub_region = { \

View File

@ -44,7 +44,7 @@ static const struct mem_region_device shadow_dev = MEM_REGION_DEV_INIT(
* essence this means "BIOS" region (usually starts at flash physical 0x1000 is mapped to * essence this means "BIOS" region (usually starts at flash physical 0x1000 is mapped to
* 4G - IFD_BIOS_SIZE. * 4G - IFD_BIOS_SIZE.
*/ */
static const struct xlate_region_device real_dev = XLATE_REGION_INIT( static const struct xlate_region_device real_dev = XLATE_REGION_DEV_INIT(
&shadow_dev.rdev, CONFIG_IFD_BIOS_START, &shadow_dev.rdev, CONFIG_IFD_BIOS_START,
IFD_MAPPED_SIZE, CONFIG_ROM_SIZE IFD_MAPPED_SIZE, CONFIG_ROM_SIZE
); );