summaryrefslogtreecommitdiff
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
authorHarald Geyer <harald@ccbib.org>2016-01-17 19:13:29 +0300
committerJonathan Cameron <jic23@kernel.org>2016-01-30 19:27:13 +0300
commit22acc120a141ce0a3b6e98799d15970ef687bc70 (patch)
tree5b12ebcfe799413050372677f77046b1f37cbc96 /include/linux/vmalloc.h
parentc984b9cbbd17d3eb602de3802e25d975182474fa (diff)
downloadlinux-22acc120a141ce0a3b6e98799d15970ef687bc70.tar.xz
iio: dht11: Improve reliability - be more tolerant about missing start bits
Instead of guessing where the data starts, we now just try to decode from every possible start position. This causes no additional overhead if we properly received the full preamble and only costs a few extra CPU cycles in the case where the preamble is corrupted. This is much more efficient than to return an error to userspace and start over again. Signed-off-by: Harald Geyer <harald@ccbib.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/vmalloc.h')
0 files changed, 0 insertions, 0 deletions