pass: hal: Fix error number from EINVAL to EPERM/ENODEV 13/184813/2
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 20 Jul 2018 04:23:11 +0000 (13:23 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 23 Jul 2018 09:45:36 +0000 (18:45 +0900)
commit0fac90d924a734f0ed99eba974f16e2355f3b5f4
tree84a74c21dc2a3f96355a5899cb5bd48f6b14f45c
parent8c2962a001fa9084014d56b23becc91656e3fa06
pass: hal: Fix error number from EINVAL to EPERM/ENODEV

All HAL functions return '-EINVAL' error number when error happen.
It is necessary to return more correct error value. Return -EPERM value
if HAL(Hardware Abstract Layer) function is not supported according to
h/w resource type and return -ENODEV value if HAL function is not implemented
on HAL package.

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