From 051ef9fc41912b514b39e090d364d5c7aeab6106 Mon Sep 17 00:00:00 2001 From: paris_yeh Date: Tue, 19 Feb 2013 16:49:19 +0800 Subject: [PATCH] pcbid: revise representation of hardware revision with index-based Text-based representation hardly follows up rapid changes of hardware schematics among multiple projects. Different hardware stage and naming was given even if the same pcbid value is defined. Translate the text-based representation (eg, SR, ER, and etc) into index-based one to avoid development confusion. Change-Id: I11cf63b84b9597fb100cc0c9730b36c8f386b4e4 Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69010 Reviewed-by: Sam hblee Signed-off-by: paris_yeh Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69665 --- arch/arm/mach-msm/asustek/asustek-pcbid.c | 2 +- arch/arm/mach-msm/include/mach/board_asustek.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-msm/asustek/asustek-pcbid.c b/arch/arm/mach-msm/asustek/asustek-pcbid.c index a875d46448f..c068b0d2628 100644 --- a/arch/arm/mach-msm/asustek/asustek-pcbid.c +++ b/arch/arm/mach-msm/asustek/asustek-pcbid.c @@ -122,7 +122,7 @@ static hw_rev asustek_hw_rev = HW_REV_INVALID; static int __init hw_rev_setup(char *hw_rev_info) { /* CAUTION: These strings comes from bootloader. */ - char *hw_rev_str[] = {"SR1", "ER", "PR", "MP"}; + char *hw_rev_str[] = {"rev_a", "rev_b", "rev_c", "rev_d"}; unsigned int i; if (debug_mask & DEBUG_STATE) diff --git a/arch/arm/mach-msm/include/mach/board_asustek.h b/arch/arm/mach-msm/include/mach/board_asustek.h index 3c04c5a63ce..1828f6395c6 100644 --- a/arch/arm/mach-msm/include/mach/board_asustek.h +++ b/arch/arm/mach-msm/include/mach/board_asustek.h @@ -48,10 +48,10 @@ typedef enum { typedef enum { HW_REV_INVALID = -1, - HW_REV_SR1 = 0, - HW_REV_ER = 1, - HW_REV_PR = 2, - HW_REV_MP = 3, + HW_REV_A = 0, + HW_REV_B = 1, + HW_REV_C = 2, + HW_REV_D = 3, HW_REV_MAX } hw_rev;