mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-17 01:54:01 +08:00
[media] m5mols: set usleep_range delta greater 0
This delay is in non-atomic context and it does not seem to be time-critical so relax it to allow the timer subsystem to optimize hrtimers. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
5a66e2f60e
commit
964481ad0e
@ -168,7 +168,7 @@ static int m5mols_read(struct v4l2_subdev *sd, u32 size, u32 reg, u32 *val)
|
||||
msg[1].buf = rbuf;
|
||||
|
||||
/* minimum stabilization time */
|
||||
usleep_range(200, 200);
|
||||
usleep_range(200, 300);
|
||||
|
||||
ret = i2c_transfer(client->adapter, msg, 2);
|
||||
|
||||
@ -268,7 +268,8 @@ int m5mols_write(struct v4l2_subdev *sd, u32 reg, u32 val)
|
||||
|
||||
*buf = m5mols_swap_byte((u8 *)&val, size);
|
||||
|
||||
usleep_range(200, 200);
|
||||
/* minimum stabilization time */
|
||||
usleep_range(200, 300);
|
||||
|
||||
ret = i2c_transfer(client->adapter, msg, 1);
|
||||
if (ret == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user