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

Commit be5afd93 authored by Xianbin Zhu's avatar Xianbin Zhu Committed by Gerrit - the friendly Code Review server
Browse files

i2c: refine the driver of i2c virtualization



1. 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.

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

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

Change-Id: Idb6ae8bb632c1a3032c6ba04de6ebb460f1e1a5c
Signed-off-by: default avatarXianbin Zhu <xianzhu@codeaurora.org>
parent cc47c2c3
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