]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: isl29028: change mdelay() to msleep()
authorBrian Masney <masneyb@onstation.org>
Thu, 9 Feb 2017 01:54:25 +0000 (20:54 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sat, 11 Feb 2017 09:38:21 +0000 (09:38 +0000)
commit55bf851b4ad76778ce4e591dbb79006d7107cf3d
treeba6206010c0b00601ad5212800b4f2ed358b2782
parent92196732bebf3f15962e747e09dbac7590403ec2
staging: iio: isl29028: change mdelay() to msleep()

This driver in some cases can busy wait for upwards of 100 ms. Since the
kernel at this point is not running in atomic context, and is running in
process context, we can safely use msleep() instead. This patch changes
the two occurrences of mdelay() to msleep().

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29028.c