diff options
author | Holmes Chou <holmeschou@google.com> | 2021-11-17 13:38:29 +0800 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-12-09 02:34:55 +0000 |
commit | acac44b5f3afc5930f80d9054788eb1861dd218e (patch) | |
tree | 2f8092cffbebce1f6112a476a2dd6cec4d357ab5 /lwis_transaction.h | |
parent | 2067ae7943fad8822ef54a793c3b3f11df0c5ecc (diff) | |
download | lwis-acac44b5f3afc5930f80d9054788eb1861dd218e.tar.gz |
LWIS: refact duplicate function / code
Some implementations in current codebase are duplicated.
Refact current implementation to use the same function to
handle the same task.
Bug: 206708829
Test: AOSP camera, CTS
Signed-off-by: Holmes Chou <holmeschou@google.com>
Change-Id: I86a69d1a025d598ad7dfbf198bb066808d6b5b34
Diffstat (limited to 'lwis_transaction.h')
-rw-r--r-- | lwis_transaction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lwis_transaction.h b/lwis_transaction.h index 4f980d8..56159b8 100644 --- a/lwis_transaction.h +++ b/lwis_transaction.h @@ -55,6 +55,8 @@ int lwis_transaction_event_trigger(struct lwis_client *client, int64_t event_id, bool in_irq); int lwis_transaction_cancel(struct lwis_client *client, int64_t id); +void lwis_transaction_free(struct lwis_transaction *transaction); + /* Expects lwis_client->transaction_lock to be acquired before calling * the following functions. */ int lwis_transaction_submit_locked(struct lwis_client *client, |