Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 63d9b00c authored by Xianbin Zhu's avatar Xianbin Zhu
Browse files

i2c: virtio:refine the driver of i2c virtualization



- there's no need to allocate buffer for virtio_i2c_req every
time when it comes to data transmission, we can prepare this
buffer at probe stage.

- we need to add some input parameter checking for avoiding
security risks.

- refine the code to reduce the number of judgement statements.

Change-Id: Idb6ae8bb632c1a3032c6ba04de6ebb460f1e1a5c
Signed-off-by: default avatarXianbin Zhu <xianzhu@codeaurora.org>
parent 8ed6ecd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment