halapi: Fix cpp build issue when including hal-common.h 53/252753/2
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 2 Feb 2021 06:46:54 +0000 (15:46 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 2 Feb 2021 07:03:37 +0000 (16:03 +0900)
commit40f47d6fccef8f53e3e7be6d7d328fc024f6c5c5
treed5045fd38ec5157579159e72397afe54dbe95b0b
parent4dbcdebdac3dc54df2c4fe0efaa32cbccabbf4f8
halapi: Fix cpp build issue when including hal-common.h

If the defined enum value is not sequential, some build error happen as
following. So that fix this issue by making enum hal_module sequential.

And remove the temporary defined HAL_MODULE_FOO.

[Build error message with cpp compiler]
"sorry, unimplemented: non-trivial designated initializers not supported "

Change-Id: I8dcd8c7c11807d8873d8e92413e4137ce84a3c6f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/hal-common.h
src/common.h