pass: hal: Modify the definition of pass_get/put_resource() 86/137486/5
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Jul 2017 04:45:42 +0000 (13:45 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 7 Jul 2017 05:34:02 +0000 (14:34 +0900)
commit0e039c5ce267736aef58193bdc3447f2255ea39b
treee644e2b66b378a77fd34ad765ace8b009749ecf8
parentdcf37756e211b7f1c07211c7ec33a9f65629fc64
pass: hal: Modify the definition of pass_get/put_resource()

The existing pass_get/put_resource() handles the all of resources
with 'struct pass *pass' argument which includes the information
of all h/w resources.

So, this patch modifies the definition of pass_get/put_resrouce()
in order to handle the each h/w resource with 'struct pass_resource *'
argument. And this patch changes the log message in the pass_init/exit_done()
in order to keep the same log format.

And this patch removes the unnecessary log of pass_get/put_resource().

[Before]
- pass_get_resource(struct pass *pass)
- pass_put_resource(struct pass *pass)

[After]
- pass_get_resource(struct pass_resource *pass_res)
- pass_put_resource(struct pass_resource *pass_res)

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