HV:treewide:rename struct timer as struct hv_timer

The variable timer's name is identical with struct
timer s name. This MISRA C violation is detected
by static analysis tool.
According to naming convention rule: If the data
structure type is used by multi modules, its
corresponding logic resource is only used by
hypervisor/host and isn't exposed to external
components (such as SOS, UOS), its name meaning
is simplistic (such as timer), its name needs prefix
"hv_".

Rename struct timer as struct hv_timer.
Replace regular expression:s/struct timer\([ ),;\t\*]\+\)
/struct hv_timer\1

Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Xiangyang Wu
2018-07-27 15:15:49 +08:00
committed by lijinxia
parent cf7a94071b
commit 3446e84ea5
6 changed files with 21 additions and 21 deletions

View File

@@ -8,7 +8,7 @@
#define CONSOLE_H
#ifdef HV_DEBUG
extern struct timer console_timer;
extern struct hv_timer console_timer;
/** Initializes the console module.
*