summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm1681.c
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-03-08 11:02:38 +0100
committerMark Brown <broonie@kernel.org>2015-03-09 19:15:56 +0100
commit159366ea38706402e8ebd0f55eef52931333deac (patch)
tree2f3bbaafa26f4ee7e1a0cc2ccb9967eaf874ac18 /sound/soc/codecs/pcm1681.c
parentASoC: wm8996: match wait_for_completion_timeout return type (diff)
downloadlinux-159366ea38706402e8ebd0f55eef52931333deac.tar.xz
linux-159366ea38706402e8ebd0f55eef52931333deac.zip
ASoC: wm8996: ensure lower bounds of 1 for timeout
wait_for_completion_timeout can be called with timeout == 0 due to msecs_to_jiffies(2) == 1 for HZ < 1000 and usecs_to_jiffies(300) == 1 for all reasonable values of HZ, thus the following timeout /= 2; sets timeout to 0. This patch simply adds a lower-bounds of 1. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm1681.c')
0 files changed, 0 insertions, 0 deletions