summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/dw9807.c
diff options
context:
space:
mode:
authorJia-Ju Bai2018-07-27 05:02:40 +0200
committerMauro Carvalho Chehab2018-07-27 14:11:57 +0200
commita8a4d304b1a41105568c1408e4276cd6f32be787 (patch)
tree94af0e0f405eb4b0d19ff9b47f6cacba3a75c8df /drivers/media/i2c/dw9807.c
parentmedia: i2c: adv7842: Replace mdelay() with msleep() and usleep_range() in adv... (diff)
downloadkernel-qcow2-linux-a8a4d304b1a41105568c1408e4276cd6f32be787.tar.gz
kernel-qcow2-linux-a8a4d304b1a41105568c1408e4276cd6f32be787.tar.xz
kernel-qcow2-linux-a8a4d304b1a41105568c1408e4276cd6f32be787.zip
media: i2c: vs6624: Replace mdelay() with msleep() and usleep_range() in vs6624_probe()
vs6624_probe() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep() and usleep_range(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/dw9807.c')
0 files changed, 0 insertions, 0 deletions