pass: hal: Add missing parameter validation 75/276575/3 accepted/tizen/unified/20220628.133607 submit/tizen/20220623.085905
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 21 Jun 2022 03:05:45 +0000 (12:05 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 23 Jun 2022 06:08:12 +0000 (15:08 +0900)
commitd90a2c8bffade2af262d08099742689bf443f614
treef99bfa0e928fca9b628d3dbcd0d1444c5b1815db
parent8fb09d193c7c6be346c88b8eeb739640a54dfb85
pass: hal: Add missing parameter validation

If enter the wrong value, it cause the fault and wrong operation.
So that add the missing parameter validation checking
to prevent the wrong operation. Add missing parameter validation
by using the unittest result of pass-hal module.

- Detailed the unittest result of pass-hal module
[  FAILED  ] PassHalTest.pass_hal_set_online_state (7 ms)
[  FAILED  ] PassHalTest.pass_hal_set_cooling_device_state (1 ms)
[  FAILED  ] PassHalTest.pass_hal_set_battery_charging_status (1 ms)
[  FAILED  ] PassHalTest.pass_hal_set_battery_charging_current (1 ms)
[  FAILED  ] PassHalTest.pass_hal_set_fault_around_bytes (1 ms)

Change-Id: Id320b77188508d82bc68137c65bb5b7d81729c55
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass-hal.c