staging:iio:hmc5843: Implement timeout in read function
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 27 Jul 2013 15:31:00 +0000 (16:31 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 4 Aug 2013 10:08:16 +0000 (11:08 +0100)
commit4dedf31cd1c28c732a17ddeb9cfdf90b5b860faa
tree0214e00430f5e5c2736784a4d2866a59c4939ca2
parenta34778f3a7cf20ffb7f7f93fd96a9c456b2a96c6
staging:iio:hmc5843: Implement timeout in read function

avoid polling data ready bit forever; msleep() may be too long
for high sampling frequencies but the driver interface does not
support buffering

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Shubhrajyoti Datta <shubhrajyoti@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843.c