commit | 36a28e4a613bba376959a1b698ae0e1b23d52b59 | [log] [tgz] |
---|---|---|
author | Brian Masney <masneyb@onstation.org> | Thu Jul 06 18:56:24 2017 -0400 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Jul 09 18:30:07 2017 +0100 |
tree | a1d942122fdee33488af269ada6e52500e1bfd8e | |
parent | be78f70ce0d11aa5767a859e1abdc522c1748c44 [diff] |
staging: iio: tsl2x7x: use usleep_range() instead of mdelay() This driver in some cases can busy wait for upwards of 15ms. Since the kernel at this point is not running in atomic context, and is running in process context, we can safely use usleep_range() instead. This patch changes the two occurrences of mdelay() to usleep_range(). Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>