Staging: iio: adc: Refine delay computation
authorVaishali Thakkar <vthakkar1994@gmail.com>
Fri, 3 Oct 2014 03:46:53 +0000 (09:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:07 +0000 (10:29 +0800)
commite3fe42b149c4c8ee13ade4112ed38e6d9a85c7b7
tree3918c173b240cce2a373f5fc935e4cf0e7cb48f2
parent7ba75289115b9059d261de297041f8b754899f22
Staging: iio: adc: Refine delay computation

As per comment in function ad7280_delay, conversion delay may take up
to 250us. We cannot rely on msleep for this because it may sleep longer
than intended time for values less than 20ms, so use usleep_range instead.

Problem detected using checkpatch.pl.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7280a.c