From: Kazuhiro Ondo Date: Mon, 18 Oct 2010 21:07:44 +0000 (-0500) Subject: misc: mdm6600_ctrl: Revert recent changes for AP & BP status defs. X-Git-Tag: firefly_0821_release~9834^2~444 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cfb2b33209f98cdccc694828a3a7570b048cc202;p=firefly-linux-kernel-4.4.55.git misc: mdm6600_ctrl: Revert recent changes for AP & BP status defs. Change-Id: If8010e934d55af3770e8ebc78e59b93886eb50f6 --- diff --git a/drivers/misc/mdm6600_ctrl.c b/drivers/misc/mdm6600_ctrl.c index 81ab71b44fd2..85b9c391cb5b 100644 --- a/drivers/misc/mdm6600_ctrl.c +++ b/drivers/misc/mdm6600_ctrl.c @@ -27,22 +27,21 @@ #include #include -#define AP_STATUS_UNDEFINED 0x00 +#define AP_STATUS_BP_PANIC_ACK 0x00 #define AP_STATUS_DATA_ONLY_BYPASS 0x01 #define AP_STATUS_FULL_BYPASS 0x02 #define AP_STATUS_NO_BYPASS 0x03 #define AP_STATUS_BP_SHUTDOWN_REQ 0x04 -#define AP_STATUS_BP_PANIC_ACK 0x07 +#define AP_STATUS_UNDEFINED 0x07 - -#define BP_STATUS_UNDEFINED 0x00 +#define BP_STATUS_PANIC 0x00 #define BP_STATUS_PANIC_BUSY_WAIT 0x01 #define BP_STATUS_QC_DLOAD 0x02 #define BP_STATUS_RAM_DOWNLOADER 0x03 #define BP_STATUS_PHONE_CODE_AWAKE 0x04 #define BP_STATUS_PHONE_CODE_ASLEEP 0x05 #define BP_STATUS_SHUTDOWN_ACK 0x06 -#define BP_STATUS_PANIC 0x07 +#define BP_STATUS_UNDEFINED 0x07 #define LOOP_DELAY_TIME_MS 500 @@ -50,14 +49,14 @@ static const char *mdmctrl = "mdm6600_ctrl"; static const char *bp_status[8] = { - [BP_STATUS_UNDEFINED] = "undefined", + [BP_STATUS_PANIC] = "panic", [BP_STATUS_PANIC_BUSY_WAIT] = "panic busy wait", [BP_STATUS_QC_DLOAD] = "qc dload", [BP_STATUS_RAM_DOWNLOADER] = "ram downloader", [BP_STATUS_PHONE_CODE_AWAKE] = "awake", [BP_STATUS_PHONE_CODE_ASLEEP] = "asleep", [BP_STATUS_SHUTDOWN_ACK] = "shutdown ack", - [BP_STATUS_PANIC] = "panic", + [BP_STATUS_UNDEFINED] = "undefined", }; static const char *bp_power_state[2] = {